two issues with my game
Nocturne31
Member Posts: 23
Hey guys
I have two issues that I am hoping will be resolved
1) when jewels fall and collide, they push each other in weird directions and start rotating
2) I managed to touch and drag a jewel left and right, falling when I let go. The issue is that I am able to touch and drag them again after they have fallen, which I don't want...How do i get them to halt and prohibit being touched and dragged out of where they have landed?
Thanks in advance
Comments
For 1) what reaction are you looking for??
For your first issue, check to see if your physics setting for bounciness is set to the default of 1 -- If it is then change it to '0' and see if that helps --
For your second issue, set your actor up with a Boolean called released -- When you do your code for move and release write it something like this --
Rule – "To Select your Object"
Condition ‘Touch’ is ‘Inside’
Condition 'Attribute' (If) self, released (Is) false
then do another new rule in the Else Section
Rule – "To Release your Object"
Condition ‘Touch’ is ‘released’
Do –
Use your release code that you have written then add the following attribute in the 'Do' Section --
This will set up a self check that will make sure that the actor can only be used once -- give it a try and hopefully that will work for you --