# Yoshi's island style shooting mechanic

**URL:** https://forum.kirupa.com/t/yoshis-island-style-shooting-mechanic/287239
**Category:** programming
**Created:** [April 28, 2009, 1:23pm UTC](https://forum.kirupa.com/t/yoshis-island-style-shooting-mechanic/287239 "2009-04-28T13:23:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Skribble](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Skribble](https://forum.kirupa.com/u/Skribble)
#### Post date: [April 28, 2009, 1:23pm UTC](https://forum.kirupa.com/t/yoshis-island-style-shooting-mechanic/287239/1 "2009-04-28T13:23:07Z")

</div>

So I wanted to make something along the lines of the egg launching ability in Yoshi’s Island, but I’m not quite sure where to start.

Here’s a little diagram to help, in case you aren’t sure what I mean.

![](http://img128.imageshack.us/img128/4513/throwability.jpg)

The user can hold the throw button to bring up a cursor that goes up and down in an arc over a 90 degree angle. Letting go of the button fires the object in the direction the cursor is facing.

I’m pretty decent at actionscript, but not so much math, so I would really appreciate any tips given about this subject 😃

Thanks

Brendan
