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!
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!