need help figuring out bug how to get rid of
why is this ghost not moving but in a random spot and i also did not make it spawn until 60000ms (one minute)
Are you using an on game update every [number] ms
event block? The event block will activate the moment the game starts, as that is the first game update. Then it will activate after the number of milliseconds you set. Also, if you post the game link, it would be a little easier to help.
yes i am also here is the code
also
- multiplayer
- singleplayer
0 voters
Okay, I think the ghost isn’t moving because:
You’re changing the [picture]
variable once in the game update
block, and again in the function that is called directly after:
Because of this, the [picture]
variable is equal to two when the sprite is spawned, and so the follow
block doesn’t get declared.
You could fix this by 1) removing one of the variable changes:
or 2) you could just declare the follow
block in each of the else if
statements:
also now i need help with making the projectile get shot. ↑↓→←
it moves now just spawns before 60000 ms
here is my existing code for that but also i hadent finished some others. like the doors to teleport for the ghosts
Yeah, you might have to use a variable to keep it from spawning immediately.
thanks
i tried thatt but its still spawning early
I think that’s because you’re changing the variable before you do the if
statement. Try moving the change gum by 1
variable to the end of the game update
block.
thanks