I tried putting in code with the first line:
if(!collision_point(x,y,ground,true,false) && !jumping && !doublejumping)
{
and it doesn't recognize collision_point!! Help!
The code is for jumping and double jumping, btw.
Coding help with collision_point
Started by Kitskull, Jul 20 2012 10:10 PM
7 replies to this topic
#1
Posted 20 July 2012 - 10:10 PM
#2
Posted 20 July 2012 - 10:12 PM
You know what? Now I feel really stupid. I spelled it collison, and now I wish I didn't post this.
#3
Posted 20 July 2012 - 10:13 PM
Ok, now a new problem came up. What's wrong with y+grav?
#4
Posted 20 July 2012 - 10:14 PM
That's the very next line
#5
Posted 21 July 2012 - 01:29 AM
Wow, three bumps within 5 minutes
What are you trying to define with y+grav? If you just put y+grav, gamemaker doesn't know what to do as it's wrong coding.
I assume you want to add "grav" to the y-value?
Instead of y+grav, put:
What are you trying to define with y+grav? If you just put y+grav, gamemaker doesn't know what to do as it's wrong coding.
I assume you want to add "grav" to the y-value?
Instead of y+grav, put:
y+=grav
#6
Posted 21 July 2012 - 01:37 AM
Oh.
#7
Posted 21 July 2012 - 02:10 AM
Also... How do you place a block using create instance at point "mouse"?
#8
Posted 21 July 2012 - 08:47 AM
instance_create(mouse_x,mouse_y,block);
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











