how do you make one actor not affected by gravity?

snowstormsnowstorm Member Posts: 51
edited November -1 in Working with GS (Mac)
so i an using gravity to make blocks and the actor fall, but when i put in a background image like a cloud that also falls with the other actors (and i want the cloud to be mobile moving across) thats why i don't uncheck movable.
«1

Comments

  • mangaroomangaroo Member Posts: 419
    Apply a gravity (acceleration) at 270º only for the actors you want affected by gravity :)
  • snowstormsnowstorm Member Posts: 51
    ok, thanks!
  • snowstormsnowstorm Member Posts: 51
    ok, so now i have a problem where the actor and blocks are are turning on their side and since i put the acceleration to down they are going all over the place. and i've tried this before but i keep geting the same problem.
  • EdwardFEdwardF Member Posts: 27
    Actor Attribute:

    Physics
    Fixed Rotation - Specify whether or not the actor rotates when it collides with other actors in the scene
  • snowstormsnowstorm Member Posts: 51
    you would just check it, right. because when i did that nothing happend
  • snowstormsnowstorm Member Posts: 51
    or would you create a whole new atribute?
  • mangaroomangaroo Member Posts: 419
    You would check it - make sure that the prototype and actor are linked or you are ticking the actor and not the prototype
  • snowstormsnowstorm Member Posts: 51
    i'm sure, it is the orignal
  • mangaroomangaroo Member Posts: 419
    Even rules wouldn't affect it if it was ticked im sure - so double check by clicking on the blocks in the scene itself and i think if they are already on the scene then try ticking their checkbox and see if it makes a difference?
  • snowstormsnowstorm Member Posts: 51
    but when i do that they are stuck and will only fall if there is nothing under them.
  • mangaroomangaroo Member Posts: 419
    When you untick rotate the blocks stop moving? i think you've lost me here...

    usually objects only get blocked by other objects if you have set them to collide with eachother...
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    make sure your accelerate down rule is relative to scene and not actor
  • snowstormsnowstorm Member Posts: 51
    it won't fall unless there is no other block touching it
  • mangaroomangaroo Member Posts: 419
    Try what JohnPapiomitis suggested that should make them more likely to fall straight down even if they bump into each other

    If you don't want the blocks to stack - disable collision of blocks with blocks - if that is already the case and u mean side-touching perhaps there is an unkempt rule somewhere disabling/limiting motion when a block overlaps with a block?
  • snowstormsnowstorm Member Posts: 51
    yah now i'm getting the thing where the plocks fly all over the place because i unchecked fixed rotation
  • mangaroomangaroo Member Posts: 419
    Ok i mean check fixed rotation and make sure gravity/acceleration for the blocks is acting 270° in relation to the scene..

    once that is done you get the problem with them stacking - are the blocks set to collide with eachother?

    Make sure moveable is still checked - only fixed rotation off
  • snowstormsnowstorm Member Posts: 51
    ok, should i have fixed rotation checked or unchecked?
  • mangaroomangaroo Member Posts: 419
    It all depends on what you're trying to make! If you don't want them to rotate untick it :) if you dont mind - leave it ticked

    And sorry in the previous post when i said check fixed rotation - meant tick since its not the effect you want :)
  • snowstormsnowstorm Member Posts: 51
    either way, they still rotate and go off to the side
  • mangaroomangaroo Member Posts: 419
    Do the blocks spawn or are they already there? If they spawn then you need to untick rotate in the prototype.
    If they are already on scene/hidden on scene check the block actors themselves...Sorry we seem to be going in circles but other than having a look at the template this is what follows...in my mind anyway!
  • snowstormsnowstorm Member Posts: 51
    they are on scene
  • snowstormsnowstorm Member Posts: 51
    so in the prototype it should be checked, but in the individual blocks it should be unchecked, right?
  • mangaroomangaroo Member Posts: 419
    its best to untick them all for now to test whats going on - especially if in the process some became unlinked from the prototype. alternatively just untick the prototype and re-drag them onto the scene
  • snowstormsnowstorm Member Posts: 51
    ok they're all unchecked, and i'm getting the thing where they fly over to the side
  • AsymptoteellAsymptoteell Member Posts: 1,362
    Make sure the accelerate is relative to scene.
  • snowstormsnowstorm Member Posts: 51
    they're all relative to the scene
  • snowstormsnowstorm Member Posts: 51
    i have to go, but thanks for all the help! i'll come to this forum tomorrow and see if we can work this thing out. again, you were a great help, thanks a lot!
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Set the restitution under Physics to 0 or a number you are comfortable with after a little experimenting.
  • ozboybrianozboybrian PRO Posts: 2,102
    Change Attribute: Self.Rotation to 0. If it keeps rotating your file is corrupt or something.
  • snowstormsnowstorm Member Posts: 51
    i did the change attribute just now and it did nothing
Sign In or Register to comment.