problem collecting coins

tabelortabelor Member Posts: 114
edited March 2012 in Working with GS (Mac)
I all. My problem is i'm using diferent coins foreach scene in my game, but allways the same scene. My rule for the coins is when they collide with my actor or they aren't in their scene, they goes to -50 Y.position, so they still are in the scene but they aren't visible. But when i reset scene or change to the good scene, those coins remains in their position -50Y because i don't have an atribute who tell the actor the very first position where the coin was dragged. Of course i could edit every coin's position one per one accessing to their scene atributes, and setting their position manually, but that's a lot of work. So resuming: i just want to store the very first position of the coin (the position where the coin was dragged in my gamesalad creator), my question is, ¿do this attribute exist?

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    if your coins still have lockedBehaviors

    on coinPrototype:
    add attribute … real type … name: origY
    then for 1st behavior (top of the list in the rules/behavior) … drag in a Change Attribute behavior
    changeAttribute: self.Position.Y To: origY

    click on each coinInstance in each scene and see it's Y position …
    copy/paste or type in the origX attribute

    your coins should go to correct Y position when each scene loads or resets

    @};- MH
  • pixlepixpixlepix Member Posts: 12
    TSB's answer was better still :). For hundreds of coins, that saves an hour or so of work.
  • tabelortabelor Member Posts: 114
    edited July 2012
    edit: error sorry
Sign In or Register to comment.