Is there a chance that the official Drag & Drop behavior can be modified, so that the axes property is available as an action?
what kind of action do you want to request?
An action to switch to one of the 3 states (Both, Horizontal only, Vertical only)
ex: If the state in the editor is set to "Both", have the availability as an event action to switch to "Horizontal only"
You can do that with events
but I admit it will be more easier with this action
I don't see an option in the events to change that! The only available actions are to set the behavior enabled/disabled and to force drop.
Maybe I'm missing something?
(Sorry, my english is not really good :/)
I mean you can restrict the movement with your own events
It can be done quickly
Sorry to bother you again and again but I would appreciate if you can give me an example.
What I'm trying to do is have a sprite with 3 animation frames and depending on which frame is playing, constraint the movement to different axes.
(My English is not good too, so that makes 2 of us!)
ok wait a minute
non optimized but you have the idea...
left click to drag right clik to change drag mode
Thanks a lot for your time and effort man!
Yes, it partially works so I guess I'll have to do some fine tuning.
I believe that a modification in the behavior will make the constraints more consistent though.
Thanks again for the valuable help!
Develop games in your browser. Powerful, performant & highly capable.
yes, you certainly must do some change for your project
In case it's any use to you or someone else, I managed to modify the official drag n drop behavior and added this functionality.
Although it works, I'd appreciate if you can take a look and tell me if there's something terribly wrong in this mod.I know that Ashley says not to modify the official plugins, but I just don't have the knowledge to make a plugin from scratch.