Enemys falling in scratch?

Im making a scrolling platformer. I need to make a spider fall if it walks off the platform, the same way the player would. I also need it to stay in one place, (I cant get its coordinates set on the freaken scrolling plane)! And I need it to potentially chase the player if the player touches, it etc. . So how do I get it to work? (also I want it to walk back and forth, which is definitely not working) Please help!!

1 Answer

  • 7 months ago
    Favorite Answer

    Make your player's, characters', and obstacles' coordinates relative to the starting line, X=0. Let the gameplay happen on that 'infinitely' long world (where infinity is 32 bits, signed) and let the window be a peephole into that world, more or less anchored to the player.

Still have questions? Get your answers by asking now.