I’m fairly new to AS3/Flashpunk and I’m currently working on a project where I want my entities to be click&draggable to a specific portion of the screen. In other words…
I can click and drag “Entity” around the left half of the screen whereas if i attempt to drag the entity further to the right of the screen with the mouse, the object will simply halt at the farthest available point on the screen (left half).
Although I’m asking what presumably seems like a lot to ask, I still haven’t even been able to make the entity click&draggable. Through the use of Input(Mouse.Down) and x = world.mouseX, y = world.mouseY; I was only able to make it so that wherever I clicked on the screen, the entity would follow. It wouldn’t be a click and drag but more like the entity teleporting around the screen in accordance to my mouse clicks.
Please help me with these issues, I have a great appreciation for the Flashpunk Engine and its special features and utilities but my knowledge of these things is ofcourse very limited.
Thank You!