Game Development Community


#1
03/03/2005 (7:00 pm)
Why don't you use setLinearVelocityPolar(%degrees, %speed); (at work so the variables might not be accurate)

$myball.setLinearvelocityPolar( $player.ang SPC "8" );
#2
03/04/2005 (2:38 am)
@Rob: Yes, I added "polar" versions to most things that use seperate components like tile-layer panning, linear velocity, scrollers etc.

Report any others that would be useful and they'd more than likely get added on next update.

- Melv.
#3
03/04/2005 (3:19 am)
@Robert: The collision routines return the objects in question. When you first generate the objects, just tag them with a dynamic field like "%obj.tag = "enemyfire";, that way you can easily classify the appropriately action in the collision routines. This is how its supposed to work and the shooter example shows this in action if it helps.

- Melv.