Is there a better way than collide ??

David_GryphonsRealmDavid_GryphonsRealm Member Posts: 459
edited January 2012 in Working with GS (Mac)
Im in the beginning stages of my game and i can already tell that putting "collide" for the rule for platforms and walls is gonna be a problem. it makes it hard for my hero to move between closely put platforms. he "bounces" off them and thats not gonna work for me. is there any other way of doing this ? thx in advance i really appreciate it !!

David

Comments

  • ultimaultima Member, PRO Posts: 1,207
    edited January 2012
    someone just put up a table "collide" .. take a look around. actually here... http://forums.gamesalad.com/discussion/38411/free-tables-template-from-dba#Item_14

    i try to click every thread just in case there's things i need to learn and has titles that has nothing to do with it.(not in this case but..)
  • ultimaultima Member, PRO Posts: 1,207
    edited January 2012
    if you don't want to use table, constrain is always another option. or turning off the restitution for that particular narrow "passage" of yours.
  • David_GryphonsRealmDavid_GryphonsRealm Member Posts: 459
    @ultima : hmmm interesting im gonna try both ways and see which works better. could u explain constrain a little more. thx !!

    David
  • ultimaultima Member, PRO Posts: 1,207
    constrain? it's simple since i don't know what your game is like but you set the actor to constrain the x or y to certain number or range of number so he doesn't go "outside" ... well in this case into the wall..
  • David_GryphonsRealmDavid_GryphonsRealm Member Posts: 459
    ohh ok, i believe TSB might have a video on this !! thx for all your help !!

    David
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    to get rid of the bounce on the collision, simply change the restitution to 0 on the actors. Thats what controls the ammount of bounce. Its under the actors physics attributes

    cheers
  • David_GryphonsRealmDavid_GryphonsRealm Member Posts: 459
    @JohnPapiomitis : YUP !! that worked perfectly !! I somehow had the restitution of the platform to 0.2 :D

    Thx again !!
    David
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    edited January 2012
    anytime, glad i could help! And yeah by default its not set to 0, we have suggested that it should be a bunch of times, im sure the guys will get around to it eventually.

    cheers
  • calvin9403calvin9403 Member Posts: 3,186
    hey John I have an idea for that, make an blank actor and make the physics you want(for most actors), and then copy that instead of pressing the plus sign

Sign In or Register to comment.