What's the maximum density?

AfterBurnettAfterBurnett Member Posts: 3,474
edited November -1 in Working with GS (Mac)
I have a couple of asteroid actors, one small, one large. I want the small ones to bounce off the large ones but the large ones shouldn't move at all (apart from across the screen as it's a side scrolling game). I have set the density so high on the large one that is says 1e+15 in the density box but it STILL moves slightly when hit by the smaller object (density 1000). What should I do?

Comments

  • AfterBurnettAfterBurnett Member Posts: 3,474
    Huh? You seem to be lost for words, Sir! :P
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi POLYGAMe, I had a similar problem a couple of days ago; no matter how much density I gave the actor, it still moved. I tried making friction 3 and restitution 0, but still no luck. I solved it by checking the Apply Max Speed. This seemed to work, providing the Max speed is set to 0, of course. Don't know if that'll help you...

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

  • quantumsheepquantumsheep Member Posts: 8,188
    Wait a second...

    Could you not just put rules in the smaller asteroids to have the move when they hit a larger one, then not include this rule in the larger asteroids???

    QS :O

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • AfterBurnettAfterBurnett Member Posts: 3,474
    I do have that, QS... they still seem to move. Not all the time, either... quite annoying...
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    I must be invisible! Got your point. :-)

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

  • AfterBurnettAfterBurnett Member Posts: 3,474
    Oops. LOL. Hi Gyro, I can't do that as they need to move from right to left (its a side-scrolling shooter).
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Heh, no probs, thought I'd be cheeky! Hope you get it sorted; if I discover anything more before you do, I'll let you know.

    :-)

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

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi POLYGAMe. how about putting a relatively high figure into Drag? Could make a difference, as well as in Friction maybe...

    :-)

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

  • firemaplegamesfiremaplegames Member Posts: 3,211
    Since it is a retro shooter, do you really need the physics collisions at all?

    You can still utilize the "overlaps or collides" conditions of Rules without using a Collide behavior.

    i.e:

    Rule
    When all conditions are valid:
    Actor receives event overlaps or collides with Enemy Ship
    -----Change Attribute: game.health To: game.health - 20

    This will still work just fine, even when there is no Collide behavior. Then you don't have to worry about density at all.
  • AfterBurnettAfterBurnett Member Posts: 3,474
    But I want the small asteroids to bounce off the big ones, without the big ones moving...
  • AfterBurnettAfterBurnett Member Posts: 3,474
    gyroscope said:
    Hi POLYGAMe. how about putting a relatively high figure into Drag? Could make a difference, as well as in Friction maybe...

    :-)

    Again, won't work as it will slow the asteroid down when it's moving across the screen.
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Sorry, to be clear, the problem is nothing to do with my ship/life. it's the asteroids... I want the smaller ones to bounce off the big ones and the big ones not to move at all when they are hit - just to stay on their predefined path.

    The problem I'm having is that sometimes they get knocked off their path only slightly but it's enough to close up gaps and not allow my ship to pass.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Are the big asteroids just moving left right?
    I haven't gotten to that level!
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Yeah, level 2 and 4 are pretty much just "avoid the asteroid" levels. I might put a couple of those rotating mines in there too. You finding it easier with the upgrades now?
  • AfterBurnettAfterBurnett Member Posts: 3,474
    I dropped friction to 0... possibly the smaller asteroids were getting "stuck" and dragging it out of place... looks like it might have worked but the problem is I can't get it to happen all the time... more testing!!!
Sign In or Register to comment.