Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Moving things with the mouse, In GM7, not registered.
Unspecified
Mario222
Posted: Jun 9 2007, 10:03 PM
Quote Post


Hello moto


Group Icon
Group: Banned
Posts: 249
Member No.: 3559
Joined: 7-April 07

Status: (71582601m) [XX]


Please?


--------------------

Current Project: Some SMB3 Hack. user posted image Ref .

user posted image

Friend Codes

DS: 206267 135016
PMEmail PosterYahoo
Top
Canada
Demonlemon
Posted: Jun 9 2007, 10:08 PM
Quote Post


MY CHILDREN COMETH
[*][*][*][*]

Group Icon
Group: Members
Posts: 5647
Member No.: 3281
Joined: 9-February 07

Status: (0d) [--]


Please be more specific, do you want something to follow the mouse or do you want to click and drag.


--------------------
If life gives you lemons... RUN FOR YOUR LIFE!!!
user posted image
TCOTL Reference Humanoid reference Drawings/sprites people have made me.user posted image
PMEmail PosterUsers WebsiteAOL
Top
Unspecified
Mario222
Posted: Jun 9 2007, 10:20 PM
Quote Post


Hello moto


Group Icon
Group: Banned
Posts: 249
Member No.: 3559
Joined: 7-April 07

Status: (71582601m) [XX]


QUOTE (demonlemon @ Jun 9 2007, 10:08 PM)
Please be more specific, do you want something to follow the mouse or do you want to click and drag.

Follow please. EDIT: I mean both, please.

This post has been edited by Mario222 on Jun 9 2007, 10:20 PM


--------------------

Current Project: Some SMB3 Hack. user posted image Ref .

user posted image

Friend Codes

DS: 206267 135016
PMEmail PosterYahoo
Top
Canada
Demonlemon
Posted: Jun 9 2007, 10:31 PM
Quote Post


MY CHILDREN COMETH
[*][*][*][*]

Group Icon
Group: Members
Posts: 5647
Member No.: 3281
Joined: 9-February 07

Status: (0d) [--]


Follow mouse
Step event:
Step towards point
x:mouse_x
y:mouse_y
speed:99
Avoid: solid only

Drag
Create event:
execute a piece of code
CODE
// In the create event
drag = false;

Step event:
execute a piece of code
CODE
// In the step event  
if (drag) {
x = mouse_x - xx;
y = mouse_y - yy;
}

Left pressed:
execute a piece of code
CODE
// In the mouse button press event:
drag = true;
xx = mouse_x - x;
yy = mouse_y - y;

Left released:
execute a piece of code
CODE
// In the mouse button release event:
drag = false;



This post has been edited by demonlemon on Jun 9 2007, 10:37 PM


--------------------
If life gives you lemons... RUN FOR YOUR LIFE!!!
user posted image
TCOTL Reference Humanoid reference Drawings/sprites people have made me.user posted image
PMEmail PosterUsers WebsiteAOL
Top
Unspecified
Mario222
Posted: Jun 9 2007, 10:40 PM
Quote Post


Hello moto


Group Icon
Group: Banned
Posts: 249
Member No.: 3559
Joined: 7-April 07

Status: (71582601m) [XX]


Thanks! biggrin.gif


--------------------

Current Project: Some SMB3 Hack. user posted image Ref .

user posted image

Friend Codes

DS: 206267 135016
PMEmail PosterYahoo
Top
Canada
Demonlemon
Posted: Jun 9 2007, 10:46 PM
Quote Post


MY CHILDREN COMETH
[*][*][*][*]

Group Icon
Group: Members
Posts: 5647
Member No.: 3281
Joined: 9-February 07

Status: (0d) [--]


Glad to be of service biggrin.gif


--------------------
If life gives you lemons... RUN FOR YOUR LIFE!!!
user posted image
TCOTL Reference Humanoid reference Drawings/sprites people have made me.user posted image
PMEmail PosterUsers WebsiteAOL
Top
United States
Elyk
Posted: Jun 10 2007, 07:13 AM
Quote Post


Standard Member
[*][*][*][*]

Group Icon
Group: Members
Posts: 6604
Member No.: 3808
Joined: 22-May 07

Status: (0d) [--]


Snap to mouse:

Step event-
jump to position
mouse_x
mouse_y


--------------------
user posted image
PMEmail PosterUsers WebsiteAOLMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0570 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 2.64 ]