C
ChrisMG12
Guest
Hello I'm a newbie developer, who knows a little coding. So here is my situation, so i have a projectile that pushes my character every time he jumps, but i only want this projectile to appear if there is space above me, and i want nothing to appear when i'm jumping towards a wall before completing a jump.
the code for jump projectile is in key press up and is:
if (place_meeting(x, y+1, obj_wall))
{
instance_create(x,y+29,obj_jumpprojectile)
}
So it appears every time I'm jumping off the platform(which is the wall in this case), but i want the projectile to not appear when I'm jumping and there is a wall above me.
If anyone is wondering i also have a obj_nothing for this situation.
If it helps the character movement and jumping code is from this video,
I changed the variables grav(to 1.5) and jumpspeed (to 20) .
Thanks. Any Sort of help is appreciated.
the code for jump projectile is in key press up and is:
if (place_meeting(x, y+1, obj_wall))
{
instance_create(x,y+29,obj_jumpprojectile)
}
So it appears every time I'm jumping off the platform(which is the wall in this case), but i want the projectile to not appear when I'm jumping and there is a wall above me.
If anyone is wondering i also have a obj_nothing for this situation.
If it helps the character movement and jumping code is from this video,
I changed the variables grav(to 1.5) and jumpspeed (to 20) .
Thanks. Any Sort of help is appreciated.