I am trying to make a code that it creates a object in front of you and you are allowed to move it with this
w-north
a-south
d-east
s-south
Also when you move you leave a trail like a icon behind it.
ID:162232
Feb 9 2008, 5:10 am
|
|
Feb 9 2008, 11:00 am
|
|
I'm sure you or someone else asked this many times before. This is the same way you control other things with overriding movement procs like Move(). Search the forums before you post repeated topics like this, and maybe search your mind for posts where I already explained it to you..
|
In response to Kaiochao
|
|
To Create it infront of you:
src.loc=locate(usr.x,usr.y-1,usr.z) (South) to change its direction: switch(input("What Direction?","Direction",text) in list ("North","South","East","West")) etc |
In response to Quiet Screams
|
|
ok i had already made up one. But i am trying to figure out when you move how would you leave a icon behind it?
|
In response to Trane5
|
|
i wouldnt reccomend doing that, it would cause massive lag
|
In response to Quiet Screams
|
|
Well would you suggest any other for this.
|
In response to Trane5
|
|
It won't cause massive lag if done properly and if the obj will delete itself after a certain amount of time, perhaps making a delay or limit on the number of trails that can be created. It all depends on how you decide to do it. But if the obj bumps into a wall this is where you want to cut off any trail making, easiest way is just delete the original object, there are more complex ways (for a beginner coder), but thats just one of the common ones.
|
In response to MadaraUchiha49
|
|
Well basically i want the object to last about... 30-40 Seconds. Also i know how the actavtion will work the thing that i worry is the Move().
|