moving obstacles

kirklandkirkland Removed Posts: 268
edited November -1 in Working with GS (Mac)
hi

what i am wanting to acheive is an obstacle going up and down in the air but if an actor hits it let it bounce off and the obstacle keep on moving up and down

has anyone got any ideas

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    I believe you will want to create a obstacle actor with moveable OFF in physics

    Add a rule to interpolate its Y position to the lower and upper points you want in a loop. Ie; put when self.positionY=250 then interpolate self.positionY to 100. Then if self.positionY=100 then interpolate self.positionY to 250 and set the interval to control how fast.

    The other actor can be set to collide with this obstacle. Control how much bounce by using a restition value between 0 (no bounce and 1 which is high bounce.
  • kirklandkirkland Removed Posts: 268
    hi

    what i am wanting to acheive is an obstacle going up and down in the air but if an actor hits it let it bounce off and the obstacle keep on moving up and down

    has anyone got any ideas but a detailed answer
  • PhoticsPhotics Member Posts: 4,172
    Maybe this will work...

    • two interpolates on the up/down obstacle.
    • When it reaches the top, interpolate the Y position to move downwards
    • When it reaches the bottom, interpolate the Y position to move upwards.
    • Rules can be used to trigger the two interpolates
    • Actor is set to not movable
    • Set the restitution to 2, that will make it bouncy
    • A collide behavior, will make the main actor bounce off.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    i was just gonna say that, you made the same thread a hour ago and your question was answered
  • kirklandkirkland Removed Posts: 268
    i don't understand any of this i am new to game salad
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    watch the tutorials first

  • kirklandkirkland Removed Posts: 268
    what the welcome one
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    JohnPapiomitis said:
    i was just gonna say that, you made the same thread a hour ago and your question was answered

    I'll merge 'em

    edit:... and merged
  • kirklandkirkland Removed Posts: 268
    sorry guys still don't understand it please can some one please tell me with steps to follow or a tutorial
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    well you're asking someone to design the game for you. what concept are you having trouble with.
Sign In or Register to comment.