I have a hero and a enemy,Now When a hero contact the enemy the hero should automatically fall down.How can I add a Collision method to it.
Asked
Active
Viewed 209 times
-1
-
Please be way more specific. – timgeb Jun 12 '14 at 09:00
1 Answers
0
Well do some research! There are a lot of samples out there that Aymeric has posted.
The most common is to use the SimpleCitrusSolver. It's quite easy and is done with one line of code: simpleCitrusSolver.collide(DynamicObject, StaticObject);
You can find more for this in the simple collision example.
Other samples can be found at the Citrus Engine Examples github page.

Andrey Popov
- 7,362
- 4
- 38
- 58