Player and actors jigging around

gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
edited November -1 in Working with GS (Mac)
I've a really annoying problem: as a small part of my game, I've got my player pushing boxes. After they are pushed, the player and the boxes start moving very slowly a pixel at a time, at random.

I've set friction to 3 (I think that's the highest?), Drag to 200 and Density to 500. For the crates, they have fixed rotation and moveable checked. I've tried applying Max Speed and setting max speed to 0, but still no luck.

Any ideas here please, anyone?

""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Comments

  • POMPOM Member Posts: 2,599
    maybe something like this:
    attribute: "i can move" - boolean (false)
    in the moving box make a rule:

    when collide with player
    change "i can move" to true
    otherwise - false

    and in your other rules add when "i can move" is true AND collide with player
    do what you want it to do

    is that make any sense ?!

    you can also add in the otherwise section
    change velocity to 0
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    That makes sense p-o-m, thanks. I was hoping to avoid something like that (not that it adds much to the Rules, I guess); but I'll certainly give it a go.

    For interest, the problem has only occurred since I added the moveable crates. Up until then, everything was OK. I'm rebuilding the game from ground up, and hopefully next time round, it'll be sorted! Thanks again.

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.