S
SouchieeBlanc
Guest
Hello !
I'm making a find phone game and, actually, i'm doing the SMS system.
Anyone know how to make the scroll system?
I tried with something like:
When you click:
sprite_set_offset(my_sprite,0, mouse_y);
and after:
y = mouse_y; <-- when held down
This solution only works at the first click, because once you click again, since the origin is different, its y-axis moves back into the room with respect to its new origin and thus no longer scroll to the place where I click but higher.
Someone would have a solution so that, when I click at a y of my object and that I remain pressed, I can go up and down this object, several times, as if we were on a page of SMS / mail?
I see some tuto to drag an object, but in my case, the drag need to be in the point where i click, and i didn't found this...
Thank you in advance.
I'm making a find phone game and, actually, i'm doing the SMS system.
Anyone know how to make the scroll system?
I tried with something like:
When you click:
sprite_set_offset(my_sprite,0, mouse_y);
and after:
y = mouse_y; <-- when held down
This solution only works at the first click, because once you click again, since the origin is different, its y-axis moves back into the room with respect to its new origin and thus no longer scroll to the place where I click but higher.
Someone would have a solution so that, when I click at a y of my object and that I remain pressed, I can go up and down this object, several times, as if we were on a page of SMS / mail?
I see some tuto to drag an object, but in my case, the drag need to be in the point where i click, and i didn't found this...
Thank you in advance.