Make an object bounce off an object without moving the object

solitaireesolitairee Member Posts: 73
edited November -1 in Working with GS (Mac)
http://gamesalad.com/game/7947

my problem is i dunno how to make it that square actor will not push moving one :(

really thx if someone know solution

Comments

  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    can you explain what you want a bit more please.

    When I play it, there is a thin rectangle which moves up, until it hits a falling square and then the square actor pushes the rectangle actor down.

    They then go through the square at the bottom of the screen.
  • solitaireesolitairee Member Posts: 73
    I want to not let the falling square to push the one which is moving, just bounce on it but not push
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Make it unmoveable

    I edited the title to post the actual question
  • solitaireesolitairee Member Posts: 73
    when it is unmovable it will not going up and down
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    What exactly ate you trying to do?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    change the density of the square block or take off gravity
  • solitaireesolitairee Member Posts: 73
    tenrdmer I got gravity putted just on the actor which is falling

    johnmulcahy I wanna let the actor which is moving up move, let the falling actor fall, but after colliding I don`t wanna first actor be affected by collision but second (falling) will bounce
  • StormtrixStormtrix Member Posts: 256
    Solitairee -- something like this?
    http://gamesalad.com/game/8575
    Platform is non-moveable but moves using interpolate

    now i'm not sure why it sticks to the platform the first time, but then it bounces fine for awhile.
    anyone care to check it out - can download it from my ..ftp.. and if you can explain why it sticks the first time that'd be great :)

    file is called - simplebounce.zip

    ftp://96.228.187.169
    uname: gamesalad
    pwd: gamesalad
  • solitaireesolitairee Member Posts: 73
    stormrix thx something like that, Ill just adjust it, u helped me a lot!!
  • solitaireesolitairee Member Posts: 73
    have seen a code, it is crazy :) I`ll be still searching, but ty u all helped me
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    gravity is a scene attribute if it is set at all it is on every movable object in the scene try using a move to or acelerate behavior to simulate gravity for just one object.

    Do a rule like this

    When Overlap/Collide with actor "Long rectangle"
    --
    Otherwise
    --Move 270 relative to actor

    Put that in the rule for your square
    And set scene gravity to 0

    Give that a try
  • StormtrixStormtrix Member Posts: 256
    I'm curious if someone could look at that project file i did and see why the ball sticks to platform on first try and after about a min or so it'll stick again... just wanting to know for future projects.
    Density and friction is 0 on platform and top/bottom.. Restitution is 1 on all.. Ball is density of 5.
Sign In or Register to comment.