The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script spritebehave not work after movesprite(2)

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old November 19th, 2018 (9:39 AM).
Dinisk's Avatar
Dinisk Dinisk is offline
DinisK
 
Join Date: Jan 2017
Gender: Male
Posts: 89
after using movesprite (2), the sprite teleports to the indicated point and does not walk (spritebehave 0x2). I need instant teleporting (movesprite) then put spritebehave 0x2 and of course if I leave the map and come back (movesprite2). If I use all three of them, then the sprite does not move until I speak with it. In the map level it’s still the same. Help to understand its functions.Manually specify the coordinates and wait half a minute movement npc, no.
//manipulations with id & flag no var, I would like to avoid

#dynamic 0x074B0C0

#org @start
compare 0x4050 0x2//what event happened to activate this plate script
if 0x3 call @01 //if var 0x4050 =0x3 call 0x3
end

#org @01
setvar 0x4050 0x3//now nothing reactivate this script
spriteface 0x13 0x2
pause 0x3
spriteface 0xff 0x1
sound 0x15
applymovement 0x13 @sign
waitmovement 0x0
msgbox @tell 0x2
applymovement 0x13 @move //goes out of view of the player to teleport
waitmovement 0x0//player wait move npc
spritebehave 0x13 0x2//set walk around
movesprite 0x13 0x4 0x14//teleporting
end

#org @tell
= Hey stop.

#org @move //leaves with the camera
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xfe

#org @sign// sign !
#raw 0x62
#raw 0xfe
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 22nd, 2018 (1:14 AM).
Dinisk's Avatar
Dinisk Dinisk is offline
DinisK
 
Join Date: Jan 2017
Gender: Male
Posts: 89
after 52 hours of various manipulations, I realized where the error was. Look to prevent the same. goto lvlscript 03->

compare 0x4050 0x1
if 0x4 call @01
compare 0x4050 0x3
If 0x4 call @02
end


#org @01
movesprite2 0xF 0x4 0x1b
//return*
end

#org02 //it s not work because it worked @ 01,i change fitst if 0x1* it s work,stop..while I wrote it, I realized that use return also works
movesprite 0x13 0x2
end
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:17 AM.