Sign in to follow this  
Followers 0
atrX

Moving Entities

1 post in this topic

Basic Movement Functions

These are the basic functions used to move an entity often used:

Please login or register to see this code.

 

What does X, Y and Z stand for?

X, Y and Z correspond with the axises in Radiant, meaning:

  • X is the horizontal axis (left to right increases X-value, right to left decreases X-value).
  • Y is the vertical axis (bottom to top increases Y-value, top to bottom decreases Y-value).
  • Z is the height (low to high increases Z-value, high to low decreases Z-value).

 

More?

There's 2 more handy functions to move entities, one of which is not really common (moveGravity()) but still good to know about:

Please login or register to see this code.

 

Waiting for movement to finish

When an entity finishes moving a notify is sent named "movedone", this can be used to make a function wait for movement to finish.

Please login or register to see this code.

More on notify and waittill: 

 

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0