Move A 3D Model Or Sprite

← All Topics
You are here:

Move A 3D Model Or Sprite

You can move you game entities in any direction: left / right / up / down / forward / backward for example:

player is a dragon
player.move left 20 in 10 seconds
player.move right 20 in 3 seconds

In this example we created a new dragon for the player object and then moved it 20 meters to the left in 10 seconds and then 20 meter to the right in 3 seconds.
You can also move in any of the 3 axes – X, Y or Z for example:

player is a dragon
player.move(x-20) in 10 seconds
player.move(x+20) in 10 seconds
player.move(y+2) in 5 seconds

In this sample, we created a new dragon and then moved it to the left (x-20), then to the right (x+20) and finally up (y+2)

Previous Loading A 3D Model
Next Move From One Entity To Another