Thread: Development: The Follow Me Script
View Single Post
Old November 3rd, 2012 (8:38 AM).
Diegoisawesome's Avatar
Diegoisawesome Diegoisawesome is offline
Oh god the bees
  • Silver Tier
Join Date: Dec 2007
Location: :noitacoL
Age: 20
Gender: Male
Nature: Naive
Posts: 1,039
Originally Posted by Naruto200 View Post
Um I don't know if you know this, but an easy way to do a follow me script is

*the start of your script*
playsong 0x *follow me or follow me alt offset* 0x0
applymovement 0x person number @movement1
applymovement 0x FF (player) @movement2
wait movement 0x person number
fadedefault(This just makes it fade to the default song of the map you're on)
*the rest of the script*

I have done this and it works, you just copy the movement data from the person the player is following, paste it, and rename the pointer to the movement data of the player.

I don't know how well it works the other way around, but it should work just the same.(Just do a script event instead of a person event and swap the player movement with the person movement in the main script) I have a working script of that if anyone wants to see it.
Sorry to inform you, but you missed the point of this thread. Here, we're trying to make a system where the player has full control over his movement, but a sprite behind him moves with him.

My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Diego's Miscellaneous Patches
GBA Intro Manager
The Secret Sauce: Triple-Layer Tiles
Reply With Quote