Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Make an NPC walk off screen.

I want to make it appear as though an NPC walks off the screen. I want them to 'walk off' the right side of the screen in a straight line. So what I did was, I set them to walk right until they reach the right side of the screen, then set their graphic to an invisible one. Didn't work, the game froze up? So then I did the walk right thing again, only this time I set a self switch with a new page with a blank graphic to come on after the walking right thing. That worked somewhat, only problem was, they disappeared before walking right! So, what do I do here?
 

Fusty

Sponsor

Not sure if VX has this option too but in RMXP you have an event command called: Wait for move's completion.
If you set that after the move route and then you activate the switch it should work.
 
...or just make sure that they don't move through an obstacle, the edge of the screen, etc.

The problem that you had the second time was the lack of a "wait" command, BTW-- it started the move route, then immediately went to the second page and dutifully erased the graphic.
 
Okay, took awhile for me to figure it out by messing with the different things you guys said, I'm slow^^; But yeah, what I did was, set wait 60 frames, set the movie route (right) then of course leave the switch in place and it worked. Thanks!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top