some noob questions about moving actors
alandrogers
Member Posts: 2
the first is more theoretical..
if you want actors to stay within the playfield, which is better / more efficient?
a. limit actors movement to stay within x,y bounds (if actor.x >= xxx; if actor.x <= yyy; etc) OR .. set up visible or invisible walls that they cant pass?
b. I want actor B to move in same direction as actor A on collision... like, actor A 'bumps' B and B starts moving same speed/path as A was previously moving. (A would stop)
if you want actors to stay within the playfield, which is better / more efficient?
a. limit actors movement to stay within x,y bounds (if actor.x >= xxx; if actor.x <= yyy; etc) OR .. set up visible or invisible walls that they cant pass?
b. I want actor B to move in same direction as actor A on collision... like, actor A 'bumps' B and B starts moving same speed/path as A was previously moving. (A would stop)
Comments
You want to use the min and max tools in the equation editor for this. I believe @TShirtbooth / @GSHelper have a tutorial on min and max.
- Thomas
Edit: Or just look in the cookbook.