Hey guys !
Been strugling with something supposed to be easy, but its my first time using this event, so maybe there a trick !
I am using a simple “Separate objects” to ensure my character is stopped by walls (and later, other characters, holes and so…).
The stopping is working, but my character is stucked on collision (I have checked this using a variable inside a textobject.
Here is my event :
And a preview : Grid Slide | Play on gd.games
Controls I am using are swiping actions.
It’s been generate with IA, I think I am going to change this…
Thanks a lot for your help, I have been building many things with GDev, but never with physics =p
You could try adding a trigger once to the collision event.
Or you could try to change the collision condition to ignore when the objects are touching. The seperate action seperates object but they may still be touching just not overlapping. So, it would continue to trigger the collision condition.
Otherwise, you could add another condition to the collision event like a boolean check or tween exists.
Thank a lot for your help.
I finally managed to achieve what I want.
Not sure exactly what works since I’ve done many changes (new full size asset, new conditions…) but it seems checking “Yes” like in your screen helped !
I still need to deal with the “Separate objects” since it’s only separating with 1 px value. So my assets ends up not being centered like it should be.
There are many useless variables and conditions in my screen, I was trying to deal with the separate object by adding a manual bounce back =p