I need some help here please

I have a game that need to fire a projectile from a rotating object.
The best example I could find of this rotation is just like in the app Blast Monkeys.

Can anyone tell me how to make that cannon ping pong effect and how to fire an object in
the same direction cannon’s rotation?

Cheers. [import]uid: 42126 topic_id: 8628 reply_id: 308628[/import]

Look in the Ghosts vs. Monsters sample code and that’ll show you most of what you need. Search for trigonometry commands because those are a crucial part of the math for firing in the right direction. [import]uid: 12108 topic_id: 8628 reply_id: 30950[/import]

Alright thanks i’ll check it out.

Do you know how to make a pop up window like in bubble ball where it says you’ve completed the level? [import]uid: 42126 topic_id: 8628 reply_id: 30952[/import]

You’d want to use native.showAlert for that;
http://developer.anscamobile.com/reference/index/nativeshowalert

In the simulator it will be a pop up but on device it will look the same as the alerts in Bubble Ball and others.

Peach :slight_smile: [import]uid: 10144 topic_id: 8628 reply_id: 30968[/import]

Yeah i figured that one out right after i posted it lol.

[import]uid: 42126 topic_id: 8628 reply_id: 30977[/import]

Would you know how to do what i am talking about in my previous post above? I cant figure out how to do it. Even after looking at the Ghost v Monsters example [import]uid: 42126 topic_id: 8628 reply_id: 30979[/import]