have you tried doing this as well?
have you tried else? instead of not?
have you tried doing this as well?
have you tried else? instead of not?
well keep it like that, its better. (unless you have reasons outside of these events that i don’t know)
the problem is elsewhere. let me think…
could you send the project by any chance? (in personal message or here if you want)
It’s for a game jam, so the code is very messy lol.
this works:
ok so…
else works better.
slight unrelated problem: because draggable can be in collision with draggable without the placement-checker be on a free (adjacent square), it cancels even though the placement is valid.
to solve that, just put a drag overwiew is in collision with draggable instead of the other collision
(nevermind, let me work that part…)
Yeah, I’ve noticed that last part. For now I’ve just made the hitboxes smaller, but obviously it’s still a bit unintuitive. I’ll mark it as the solution for now anyway, thanks so much!!! Absolutely mad!
no. im fixing it. dont change hitbox
here: fixed
i first check if dragOverview’s center is inside a draggable that is not being dragged (hence the being dragged of draggable is false)
i then need to kill the picking list to pick the instance i want to affect
there are still other stuffs overall. but the cancelling issue is now mostly solved
Thank you so much! Insane work man!
did you have this problem before? like.. before i tinkered?
Nope, it’s only arisen after. Maybe something to do with the fact the events only occur if the mouse button is being released?
i know why.
its because dragOverview is moving and not immediate
is your grid just many objects? and not a tilesprite?
Drag overview 2 is just a VFX object, whilst DragOverview is hidden and instantly snaps to the ground. I tried altering the code to mention DragOverview instead of DragOverview 2, but to no avail, so I’m not sure it is that.
Yep! That’s exactly where I went wrong! Thank you so much!!! I’ll be sure to put you in the credits! Wishlisted your game too!
thank you my brother!