Save-Point
Restricting Movement - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: General Support (https://www.save-point.org/forum-18.html)
+--- Thread: Restricting Movement (/thread-4785.html)



Restricting Movement - Peregrine - 08-17-2013

So, in the game I'm working on, I'm having a part where the main character has to push a small table in order to reach a shelf; the thing is, I don't want the player to be able to push this table past certain points. I've been trying to make some "restrictions" with events, but haven't really come up with something that works. I'd rather not have the screen go to black and have the player/table teleported to a different spot.

What I've tried is to make it so that when the player pushes the table onto the "forbidden" square, he is either moved backwards or to the sides, while the table is moved backwards, to the square the player previously occupied. I'm trying to learn more about events/the workings of RPG Maker XP, and I'm kind of at my wit's end here (though it prolly has a simple solution, I'm sure), so I'd be grateful for any help!


RE: Restricting Movement - Ahzoh - 08-17-2013

I do believe there is an move command in the event command "set move route", this move comand is "move back one space" or something.

If I had a copy of the method/script you used to enable the player to push the table, then I could recreate it and test it out to see what works

reffer to this site for tutorials and event help:
http://www.rmxp.tigerseye.uk.com/sitemap.shtml


RE: Restricting Movement - Peregrine - 08-18-2013

Yeah, that's what I've been doing. I haven't been able to get it to work properly though. I've been messing with it a lot, but at one point I was able to make it so that the player would take a step to the side, but the table would just continue being pushed forwards (I think this was only the case if the player pressed action button + the left key).

Since I've been messing around, neither player nor table will be moved anywhere when the invisible tile is activated right now, and I haven't felt like trying to get it to work again, haha. I feel like I'm just digging a deeper hole for myself the more I mess around, so I thought I'd come here for help. But here's some screenshots:

[Image: 1EWCZCSHQuoPl1pDp1zfjzhl6pBvC0.png]
[Image: 1ZvCU61ksW21XC0Kh6LvfDVacD8Ngp1.png]
[Image: 1ahozFZEk5HHXqea0tcMzBB7M85gG1.png] [Image: 1kMefuOCmUIixLUC5qqYlDjFZ7XD.png]