Restricting Movement
#1
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!
“I have no opinion. No, none at all. Opinion is politics, and politics is an evil which has caused many a fellow to be hung while he's still young and pretty.”
Reply }
#2
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
"Turning iron ore into iron swords is a hard process, for one must first dig out the rock, and melt it to refine it, then one must pour that metal into a mould, let it cool a bit, and pound on it while it cools even further. Games are no different." - Ahzoh

Universal Declaration of Human Rights in Vrkhazhian
ʾEšol ḵavud ʾelẕakud lav ʾezʾaẕud zwazaršeru ya lit žalneru lav lit t͛enud. Ṗal sa-ražheru lav raržižu paplam lav ṗal widsaṟam bemaḵu šuku lit ʾeyṭu waẏnilaẇ.
All human beings are born free and equal in dignity and rights. They are endowed with reason and conscience and should act towards one another in a spirit of brotherhood.
Reply }
#3
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]
“I have no opinion. No, none at all. Opinion is politics, and politics is an evil which has caused many a fellow to be hung while he's still young and pretty.”
Reply }




Users browsing this thread: 1 Guest(s)