Shooting Gallery Mechanic - Shooting a target behind an obstacle..

SinequanonSinequanon Member Posts: 35
edited April 2012 in Working with GS (Mac)
Need some help with a shooting gallery mechanic. I need various objects to put in front of my targets so that, if I hit those objects, I don't hit the target. Here's an example image:

http://www.macgamesandmore.com/screenshots/shootinggallery.jpg

Let's say if I hit the bullseyes, I don't hit the objects behind them (I know that doesn't make any sense, but work with me here ;)). If you have any advice or videos on this, please help! :)

Best Answer

  • patapplepatapple Posts: 873
    edited April 2012 Accepted Answer
    you can add the object in a new layer behind the target. but I don't have idea how to intercept if the player touch the object behind.

Answers

  • simo103simo103 Member, PRO Posts: 1,331
    @Sinequanon .. I believe you will want to set them up like tshirtbooth has done in this video:

    http://gshelper.com/?p=268
  • SinequanonSinequanon Member Posts: 35
    The difference between the TSB example and what I need to do is that a click/tap event is a one-time event that makes it very easy to discern when to trigger. In this case, the faux 3D environment created with a shooting gallery requires the projectile get smaller over time and then become "active". Unfortunately, during the time when the projectile was becoming smaller, it may have been colliding with the target during that time, so simply becoming active doesn't trigger the collision event since it was already colliding.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    You'll need to use magnitude to determine the distance between the target and the projectile. When that value is less than the size of the target you can trigger a Boolean.
  • SinequanonSinequanon Member Posts: 35
    edited April 2012
    Sorry I didn't answer this - It turns out the client made an error*, the original game was a 3D game and they expected that this 2D engine could do this. I don't think it can, at least not in their turnaround time. But thank you all for your help.

    * shock of all shocks
Sign In or Register to comment.