is there a solution for not floating up and down while draging the Sprite?
Wow. That's so strange but so Cool!
Why would you want to remove that interesting floating effect?
Develop games in your browser. Powerful, performant & highly capable.
I was going to suggest the Pin behavior, since that seems to keep objects stuck together most of the time, but you are already using it. I'm guessing it has to do with the order in which C2 calculates movements: the drag&drop gets computed after the pin behavior, and then the layout is drawn before the Pin can fix it. I have no idea how to fix it though
Instead of giving a drag and drop behaviour to the blue shape, add this event and remove the "drag and drop" behaviour:
When mouse button is down: set "blue shape" position to mouse.x, mouse.y
Or, if you want to do it for mobile devices:
On touching screen : set "blue shape" position to touch.x, touch.y
Anyway tomorrow I'll be home raedy for fixing it if you will still need help these events are just a quick idea on how to fix that
set "blue shape" position to mouse.x, mouse.y[/code:43n00z07]
Change nothing same issue :/
I've tried many solutions but it still gives the strange delayed movement.
me to but thanks anyway :]
I think that you need "every tick" and x,y positions in order to work.
nah.. thats not either... did you try to post under BUG report?
No but good idea.