First We need a Character img. Button Or Whatever grpahic Etc.
Coding:
.- Set the comand teleport
.-Define a local Variable
.- Why for? Because there are Four directions on a livecode card Top Bottom South and Right
.- Set the if , the basic script is in there
.- BE SURE TO PUT SHOW AFTER END IF!!!!!!!
.- Repeat for al cases , Whit the relative you want the millisecs sec or ticks with img btn graphics etc
Code: Select all
Local Variable
Put Random(4) into variable
If variable = 1 Then
Hide (img , btn , grc )
Move ( img , btn . grc ) relative X , X in X Sec/millisec/ticks
End if
Show (img , Btn , grc )
Have a nice Day! Thanks for Reading!
Note : Is only random for now , later illdo a set-able Teleport script