Constrain override

scribblstudiosscribblstudios Member Posts: 118
edited November -1 in Working with GS (Mac)
In my game, I have an actor constrained to the mouse position. (x and y). However I also want it to still collide with its normal collisions. Is there any way to do this?
Thanks! :)

Comments

  • rlehmrlehm Member Posts: 320
    If collide stop constrain.
    Otherwise constrain.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You can put your constrain in the otherwise of an overlap or collide rule. Unfortunately thats about the only way. thats one bad thing about constrains. Also can be very useful though.
  • scribblstudiosscribblstudios Member Posts: 118
    I tried that, but it won't work, when I try to pick the object up, it stays stuck to the ground. Any advice?
  • iAppleDeviAppleDev Member Posts: 13
    If you use the change attribute in a timer (every 0.00000001 sec change X and Y) it will still have collision.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I created a demo called "fake constrain"

    search for it in the new section of the gs creator start screen.

    it's not perfect but it will give you accurate collisions and it sort of constrains to the mouse :)
Sign In or Register to comment.