Tying explosion to random tap location

wmgeichwmgeich Member, PRO Posts: 28
edited November -1 in Working with GS (Mac)
When touch is pressed and the actor recycles, I have an explosion follow at the same position just like Darren's video but the explosion image appears at the bottom of the screen, directly below where the tap occurred ("destroy"). In Darren's video the explosion occurs at the location of the tap. I copied Darren's code exactly as it is in the video using real attributes of ActorX and ActorY.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Sounds like your only getting the x value. You need to go back through all of the changes and constrains and double check it. I'm willing to bet you've just missed something.
  • wmgeichwmgeich Member, PRO Posts: 28
    Figured it out! It wasn't an x value or y value issue. Had to use interpolate instead of change attribute (different than Darren's video on recycling)! Not sure why the difference but works great now.

    Thanks tenrdrmer for your help though!
  • AsymptoteellAsymptoteell Member Posts: 1,362
    your camera might be moved from its initial spot. Try using an offset if this is the case.
    http://www.youtube.com/user/GameSaladCookbook/#p/search/4/bfKYqsuNgXY
Sign In or Register to comment.