Restrict player's movement
Moderators: marionline, SDHawk
Restrict player's movement
Is it possible to restrict the player to walk to certain zones or A B tiles with out the help of vehicles?
"I can't buy food with glory"
- Spoonweaver
- Liquid Metal King Slime
- Posts: 6466
- Joined: Mon Dec 08, 2008 7:07 am
- Contact:
Zones? For the player? That's a good idea.
Here's another trick you could use: put the player in control of an NPC which looks like the hero, using this script:
https://rpg.hamsterrepublic.com/ohrrpgc ... arrow_keys
Here's another trick you could use: put the player in control of an NPC which looks like the hero, using this script:
https://rpg.hamsterrepublic.com/ohrrpgc ... arrow_keys
Really? I would never tought about it!Spoonweaver wrote:walls
But, really I expected someone comming up with the obvious since I didn't restricted my question
Not quite that. I want the player to be able to walk certain parts of the map under certain conditions. Something more dynamic than walls.BMR wrote:Yeah, walls seems the easiest way. Unless you want NPCs to be able to walk through those areas without restriction?
tell you are going to implement this!TMC wrote:Zones? For the player? That's a good idea.
Here's another trick you could use: put the player in control of an NPC which looks like the hero, using this script:
https://rpg.hamsterrepublic.com/ohrrpgc ... arrow_keys
Yeah, I thougt something like that, but I'm not sure if the script will bypass zones limitations and acidentally everything. Gonna make a test anyways, Thanks.
"I can't buy food with glory"
I would make a zone that borders a zone yet to be unlocked. then for each step run a script like this
then I would have zone 12 overlap a wall where you want to walk through.
Code: Select all
variable (hx,hy)
hx := hero x (me)
hy := hero y (me)
if (read zone (12,hx,hy), and, check tag(tag:zoneunlocked)) then (suspend hero walls)
if (read zone (13,hx,hy)) then (resume hero walls)