IronArthur Posted February 28, 2014 Share Posted February 28, 2014 Hi, I´m a newb on Phaser so forgive me if its an stupid question to ask: It´s implemented something to represent steering behaviours on phaser?? maybe with tween (i don´t understand tweening at all) Steering behaviours its for movement for planes and cars ( usually seek ) It´s explained in this tutorial http://gamedevelopment.tutsplus.com/tutorials/understanding-steering-behaviors-seek--gamedev-849 usually the way adjust movement through time it´s like this desired_velocity = normalize(target - position) * max_velocitysteering = desired_velocity - velocity Before i start expanding to a steerToXY functions i ask if is there something similar to that. (Sorry for my english) Bye and thanks!! Link to comment Share on other sites More sharing options...
Magnifisite Posted February 28, 2014 Share Posted February 28, 2014 This is possible to do and there isn't a function in Phaser that does this for you, you can however create this yourself. There is a sprite object which has a velocity (x and y) property, this property will be added to the position automatically. Link to comment Share on other sites More sharing options...
IronArthur Posted March 1, 2014 Author Share Posted March 1, 2014 So my thinking of doing some Phaser.Physics.Arcade.prototype.steerToXY function was the right thing to do. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts