Constant upward movement

skippyskippy Member Posts: 106
edited November -1 in Working with GS (Mac)
Hey all, first post it feels nice to be part of the GS community i'm a total newbie with little experience (only from watching some great video tutorials) and its great to have a company put out something like this for people with idea's but no programming experience at all. I tried searching for some answers but couldn't find anything relevant to my problem i'll set a scenario for you and i will appreciate any help. Lets say a helium balloon is starting to rise from the bottom of the screen and you have keyboard left and right controls of it, i put accelerate direction @ 90 with it's speed set at 50 to make it rise, here's the thing now when i press to move left or right it goes basically horizontal ( left or right) then rises again where as i want it to constantly keep rising as i am moving left and right also i heard people mention making minus gravity to make something go up (i cant find gravity anywhere) would this be better than accelerate to make something rise consistently ?

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    You're doing it correctly with the accelerate in the up direction.
    Instead of Move, just try adding acceleration in the left/ right directions as well, just like you're doing for the up acceleration.
  • skippyskippy Member Posts: 106
    Ahhh Thanks man you got me thinking i was playing with it some more and instead of that even
    i added another change velocity action within my move left and right rule (change velocity) and put it in between say 30deg for right 150 for left and accelerate on 100 and its not bad its now got a kind of angular upward movement with left and right while its still rising, i'll play with it some more and see if i can improve
    cheers
  • skippyskippy Member Posts: 106
    Hey now that the movement is how i want it, when my object hits a collidable object with restitution at 0 or say 0.5 for a little bounce the object won't keep rising for instance it might start falling down now that its collided or moving left and right will angle my object up or down it's weird, do you know how i can keep my object constantly rising regardless of what it collides with ? Then again i might be doing my game all wrong and instead of making one scene say 320 x 5000 should i be having stuff spawn on the screen at certain times and just keep it at 320 x 480, like doodle jump is that one massive scene length wise or constant platforms spawning as you rise ? Please explain i need some direction Thanks
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I would get rid of all move or change velocity behaviors. do this instead:

    http://gamesalad.com/forums/topic.php?id=3911
  • skippyskippy Member Posts: 106
    hi scitunes thanks for the reply although my scenario is a little different i have figured out now why the controls were weird i had fixed rotation unchecked so when it collided the object spun then went in another direction with the left or right movement so now i'm happy with left and right movement which is all i have on mine basically you cant slow down or speed up my object relevant to the game it's just one constant upward movement.
    What do you think about the one long scene though?
    or having objects spawning ?
Sign In or Register to comment.