Dude this is getting annoying I cant turn the corner without running into a problem... GOD DUDE... Okay, this one is kidna hard. I'm trying to make a drag function BUT WITHOUT the drag_function because that has a constant drag, what I'M trying to do is make when you click (and hold) on something, and drag the mouse, it moves the view kidna like the main menu's dragging fucntion. However I only want to be able to do this when you have the "drag tool" on. (you select it by clicking on it in the options menu, long story) Anyways when the views X and Y were -320, and -240, it worked fine! but now all of a sudden, for SOME REASON, when I have (in create actor), x = -16, and y = -16 (for good reasons, 0 for some reason is bad for tiles and positioning, long story as well), but anyway this code doesn't work.
mouse button down:
- Code: Select all
d_x = xmouse;
d_y = ymouse;
begin_drag = 1;
In draw_actor:
- Code: Select all
xscreen = (xmouse - d_x);
yscreen = (ymouse - d_y);
I've also tried varias other methods PLEASE HELP SOMEONE