View Single Post
Old January 28th, 2013 (02:18 PM).
FBI agent's Avatar
FBI agent
Ally to good, nightmare to you!
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Quote originally posted by kj3400:
Another question...
I have a script that involves someone moving to a particular spot, but as soon as I move out of eyeshot and come back, the person reverts back to where they initially were. How would I keep them from moving back, even after exiting and entering the map again?
This is actually a question that I'd be interested in too. The solution I think is a level script, similar to the one in the player's room in FireRed. It'd go like this:

movesprite2 0xPersonEventNumber 0xX-pos 0xY-pos
spritebehave 0xPersonEventNumber 0xBehaviourNumber

Behavior number is just what the person does (look down is 0x8 look around is 0x1...ect). This is for FireRed, though other gen III ROMs are likely similar if not the same.

My name forum name is FBI Agent, though you can call me FBI because it's shorter. I ran an ASM request/resource thread feel free to check that out!