Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
so i got an sprite with bullet behavior and in debug mode i can see the vector x and y of the sprite using bullet behavior, how do I compare that value in C2? there isn't an expression and I have no idea how do i calc that value..
Develop games in your browser. Powerful, performant & highly capable.
vectorX = (Sprite.Bullet.Speed)*cos(Sprite.Bullet.AngleOfMotion)
vectorY = (Sprite.Bullet.Speed)*sin(Sprite.Bullet.AngleOfMotion)
vectorX = (Sprite.Bullet.Speed)*cos(Sprite.Bullet.AngleOfMotion) vectorY = (Sprite.Bullet.Speed)*sin(Sprite.Bullet.AngleOfMotion)
thanks!