Move Does Not Work as Expected

11clock11clock Member Posts: 450
edited November -1 in Working with GS (Mac)
I have this tricky enemy in my game. It first goes on screen from the right, moving to the left. I then set this timer to 0.5 seconds. After the timer goes off, the object will choose to either go immediately up or down (that parts works fine), then after another 0.5 seconds it shoots off to the left at a fast speed. When it first approaches it moves at speed of 100, then a speed of 150 for going up/down, then a speed of 200 for when it goes across the screen. My problem is that it doesn't work as expected. It moves left, then WHILE STILL MOVING LEFT it goes up/down, then WHILE STILL GOING UP/DOWN it moves to the left. This creates an unwanted diagonal movement pattern. Can someone help me?

Comments

  • 11clock11clock Member Posts: 450
    I actually meant the Move behavior. Oh well, I'll try the interpolate.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    11clock said:
    I actually meant the Move behavior. Oh well, I'll try the interpolate.

    he knows. THe most precise movement by far is interpolate. As tshirt said move and move to are buggy. Try out his suggestions

    cheers
  • 11clock11clock Member Posts: 450
    Not sure how to use Interpolate to move the object. I want it to move at the speeds mentioned in the first post, so it can match the speed of the other types of enemies.
  • xyloFUNxyloFUN Member Posts: 1,593
    Yes, avoid move and move to at any cost!

    A few weeks ako, I've made a piano by using actors for keys. The UI had a next gen "Tron" look to it and I loved the concept but when I played the instrument, keys where flying off at random times and there is nothing I could do to fix ot!

    Just to be clear, i used "move to" to animate the keys when touched.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    anyone know how to make interpolate move at one constant speed instead of speeding up the farther along it goes?

    I know the gamesalad text book says that linear is suposed to be a steady transition but it seems to not be the case
  • InLikeFlynnInLikeFlynn Member Posts: 171
    11clock:
    If the object is moving along both X and Y cordinates you need 2 interpolates.

    Interpolate
    Self>position>x to ...
    Self>position>y to ...

    tenrdrmr:
    That sounds a lot like the 'ease in' option for interpolate. I've always found linear to be steady. Maybe try deleting it and creating a new one?
Sign In or Register to comment.