Help needed remixes allowed

need help figuring out bug how to get rid of
image
why is this ghost not moving but in a random spot and i also did not make it spawn until 60000ms (one minute)

2 Likes

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. :slight_smile:

2 Likes

yes i am also here is the code

also

  • multiplayer
  • singleplayer

0 voters

1 Like

Okay, I think the ghost isn’t moving because:
image
You’re changing the [picture] variable once in the game update block, and again in the function that is called directly after:
image
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:
image
or 2) you could just declare the follow block in each of the else if statements:
image

1 Like

also now i need help with making the projectile get shot. ↑↓→←

1 Like

it moves now just spawns before 60000 ms

1 Like

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.
image
image

1 Like

thanks

1 Like

i tried thatt but its still spawning early

1 Like

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.

1 Like

thanks

1 Like