Movement Issue

DimensionGamesDimensionGames PRO Posts: 993
edited November -1 in Working with GS (Mac)
Hey all! I have an actor who I want to move a certain amount every time a button is pressed. I am currently trying to use the move to behaviour but am not sure how I can make it move the same amount every time.

Sorry for not being clear! Any suggestions welcome.

Cheers!

Comments

  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    You can do it with Interplate
    If Pressed, Interpolete Position to position + (The extact number you want to move)
  • DimensionGamesDimensionGames PRO Posts: 993
    I have never really understood interpolate. How would I go about this?

    Interpolate Attribute: self.Position.Y To: 200

    Duration: 1 Function: ease out

    This is was my attempt but didn't work :(

    Cheers
  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    Interpolate Attribute: Self.Position.Y yo Self.Position.Y + 50 (50 is any number exact you want to move)
    Try it and you will understand how it works!
  • DimensionGamesDimensionGames PRO Posts: 993
    I tried..but to no avail! One thing I noticed was that the interpolate attribute was empty when I went to look over what could be wrong.

    Cheers

    EDIT GOING TO TRY TSHIRTBOOTH NOW
  • DimensionGamesDimensionGames PRO Posts: 993
    tshirtbooth said:
    You need a trigget first

    make an attribute game.move

    on the button do this

    when touch is pressed and when mouse is inside
    change game.move to 1
    OTHERWISE
    change game.move to 0

    When game.move = 1
    Interpolate Attribute: self.Position.Y To: 200
    Duration: 1 Function: ease out

    I was using a trigger of when left key is pressed. This is what it currently looks like.

    Actor receives event key left is down

    Interpolate attribute: self.Position.Y to 200
    Duration: 1
    Function: Ease out

    As I just said it seems to empty the interpolate attribute.

    Cheers
  • DimensionGamesDimensionGames PRO Posts: 993
    Can anyone have a look over it to help me out here?

    Cheers
  • evopanopevopanop Member Posts: 41
    Publish it up and we can all take a look at it. :)
  • DimensionGamesDimensionGames PRO Posts: 993
    how do i publish! I couldn't work it out! lol

    edit: I don't have membership as I was going to buy it and then gs direct arrived :)
  • DimensionGamesDimensionGames PRO Posts: 993
    just uploaded it :)
  • DimensionGamesDimensionGames PRO Posts: 993
    Bump ;)
Sign In or Register to comment.