The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other Moving Player Sprite (https://www.pokecommunity.com/showthread.php?t=360772)

EViLGRiN January 3rd, 2016 10:18 AM

Moving Player Sprite
 
If you're doing a movesprite 0xFF (to move the players sprite) is there an easier way to re-position the camera rather than using applymovement MOVE_CAMERA? I have been searching around and not sure if I'm missing something. I have a number of scripts on the map that trigger the move, and I'm hoping I won't have to map out the correct applymovement for each script. Is there a way to do camera position =x =y that I'm not seeing?

esperance January 3rd, 2016 12:33 PM

You could give this a try: http://www.pokecommunity.com/showpost.php?p=6601665&postcount=6

Alternatively, you could try warping the player using a command like warpmuted.

EViLGRiN January 3rd, 2016 5:30 PM

Quote:

Originally Posted by Hopeless Masquerade (Post 9061875)
You could give this a try: http://www.pokecommunity.com/showpost.php?p=6601665&postcount=6

Alternatively, you could try warping the player using a command like warpmuted.

Thanks! warpmuted seems like it could have been the answer, but unfortunately it kills my script. Which apparently is a problem with warps. I'll have to think how I can make this work.

chrunch January 4th, 2016 1:26 AM

Quote:

Originally Posted by EViLGRiN (Post 9062125)
Thanks! warpmuted seems like it could have been the answer, but unfortunately it kills my script. Which apparently is a problem with warps. I'll have to think how I can make this work.

You could always just use a level script.

C me January 4th, 2016 3:51 AM

Quote:

Originally Posted by EViLGRiN (Post 9062125)
Thanks! warpmuted seems like it could have been the answer, but unfortunately it kills my script. Which apparently is a problem with warps. I'll have to think how I can make this work.

You could try movesprite or movesprite2.

EViLGRiN January 4th, 2016 10:40 AM

Quote:

Originally Posted by C me (Post 9062616)
You could try movesprite or movesprite2.

Thanks. I'm using movesprite currently, but my problem is that the move, moves my sprite off camera. I didn't try movesprite2 but as far as I cant tell it would have the same issue..? A warp + level script seems like a lot of trouble for this minor part. I was just hoping there was something easy I was missing. That rarely seems to be the case though! :)

C me January 4th, 2016 2:40 PM

Quote:

Originally Posted by EViLGRiN (Post 9062924)
Thanks. I'm using movesprite currently, but my problem is that the move, moves my sprite off camera. I didn't try movesprite2 but as far as I cant tell it would have the same issue..? A warp + level script seems like a lot of trouble for this minor part. I was just hoping there was something easy I was missing. That rarely seems to be the case though! :)

I find hidesprite 0xFF moves the camera for no reason too. Maybe if you used spriteinvisible on the player then used movesprite and finally spritevisble, try that.

EViLGRiN January 4th, 2016 4:47 PM

Quote:

Originally Posted by C me (Post 9063183)
I find hidesprite 0xFF moves the camera for no reason too. Maybe if you used spriteinvisible on the player then used movesprite and finally spritevisble, try that.

Thanks, but unfortunately the same issue. Unless I'm doing something wrong...
Spoiler:

spriteinvisible 0xFF 0xA 0x10
movesprite 0xFF 0x6 0x5
spritevisible 0xFF 0xA 0x10


It's strange that there isn't a movecamera or cameraposition... at least not by default. Thanks for your suggestions though. I just gotta think of another way of doing what I want.


All times are GMT -8. The time now is 2:26 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.