Dinisk
DinisK
- 89
- Posts
- 8
- Years
- Seen Apr 27, 2019
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
//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