Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Projection in AndEngine

I want to move my Sprite in AndEngine in a projectile motion.

Can any one help me in this matter with a piece of code? Unfortunately I didn't see an example about projections in AndEngine.

like image 448
Jawad Amjad Avatar asked Apr 28 '26 00:04

Jawad Amjad


1 Answers

What you're looking for is the UpdateModifier, I suspect.

How do you want your Sprite to move? Do you want it to find a path to the destination or are you just trying to keep something on the screen? Are you using a Camera? All of that will determine how exactly you should approach getting your Sprite to move.

This is a link for the tut about UpdateModifiers:

Update Handlers - Using their Power!

Is that what you were looking for?

like image 90
Prmths Avatar answered Apr 29 '26 13:04

Prmths



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!