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.

Pushing/Pulling Events [RESOLVED]

Hey, all. I need a little eventing help for my game-- it's basically about pulling events.

Now, I tried this awhile ago, and I got pushing down, but pulling really is a pain. I can't use the Player Touch function anymore, so I made it you have to hold "D" (the Z key in the editor) and press a direction. The only way to do this is change it to Parallel Processing. I'll have to check the player's coordinates, whether they're one tile above, to the left, etc. of the event, and see the direction they're facing. Then I'll need to use Conditional Branches to see if they're facing the event, and if they're holding Z. I got that part down, but the rest became really annoying.

First problem-- it's set as parallel processing. So basically, you could hold "D" and right, then move left REALLY quickly, and it will still run-- making you push the event while you're one tile away from it. Timing was also difficult to figure out-- I just couldn't figure out how to actually make the event move WITH the player, rather than after. Another thing is, sometimes you can go through the event. While I'm pulling it, if I quickly hold down the direction I'm facing, I can just walk right through the event, and it won't go anywhere.

Thanks for reading through all this-- if anyone could solve this for me, that'd be really great!  :cheers:
Regimos

EDIT: Well... I guess I fixed it. It was just some stupid mistake on my part. I got rid of the Wait commands between the movements and now it works flawlessly (although a bit choppy, but I can fix it myself). Thanks anyway!
 
Ahh... lame.. :mad: I totally forgot about the 1 Step Backward and the Move Toward Player command. I just retried it, and deleted all the Wait commands and it works better now :lol: Thanks for your help, Chainsaw Cheese.

Only thing is the smoothness. Sometimes the movement is a bit choppy, but I'm pretty sure I've got it figured. Thanks for your help, I figured out my error now! :pika:
 
Well I changed the Player's speed to 3 (same as event) to make it work better, otherwise the player would always be half a step faster than the event's.
EDIT: And frequency is always the highest when you use "Set Move Route", so no worries about that.
 

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