Page 1 of 1

mouse pointer movement

PostPosted: Tue Mar 16, 2004 11:10 pm
by phractus
ok this scrypt is in the drawactor for my moving guy. place is the target for the movement. It works fine exept that when the actor is moving east and west the animation doesent run. Every other animation runs fine though, and when the actor stops at the destination while walking east or west it then plays the animation. Well heres the scrypting:
if(x < place.x && y == place.y) //right
{
ChangeAnimation("Event Actor", "walkE", FORWARD);
x = x + 1;
};
if(x > place.x && y == place.y) //left
{
ChangeAnimation("Event Actor", "walkW", FORWARD);
x = x -1;
};
if(y < place.y && x == place.x) //down
{
ChangeAnimation("Event Actor", "South", FORWARD);
y = y + 1;
};
if(y > place.y && x == place.x) //up
{
ChangeAnimation("Event Actor", "north", FORWARD);
y = y -1;
};
if(y > place.y && x > place.x) //NW
{
ChangeAnimation("Event Actor", "NW", FORWARD);
y -= 1;
x -= 1;
};
if(y > place.y && x < place.x) //NE
{
ChangeAnimation("Event Actor", "NE", FORWARD);
y -=1;
x +=1;
};
if(y < place.y && x < place.x) //SE
{
ChangeAnimation("Event Actor", "SW", FORWARD);
y +=1;
x +=1;
};
if(y < place.y && x > place.x) //SW
{
ChangeAnimation("Event Actor", "SE", FORWARD);
y +=1;
x -=1;
};


Also the pointer animation i have displays under the system pointer. How do i get rid of the system pointer, or change it to the new one?
~peace~

PostPosted: Wed Mar 17, 2004 1:41 am
by Just4Fun
Well,
I'm not much good with scripting so I will try to help with your pointer question:

1.Action: "Change Cursor" to set your mouse cursor(pointer) shape for the actor. (It will change as it passes over the actor.)

2. You can also set a full transparent frame for the mouse to hide it.

* See this thread: http://www.game-editor.com/forum/viewto ... ight=mouse

PostPosted: Wed Mar 17, 2004 12:42 pm
by makslane
Mouse pointer:

See the jazz_e_boob game: http://game-editor.com/games/delta_v.zip

To don't show mouse anymore, go to the Game Properties and set "Hide mouse"

Re: mouse pointer movement

PostPosted: Wed Mar 17, 2004 12:49 pm
by makslane
phractus wrote: It works fine exept that when the actor is moving east and west the animation doesent run.


But, the actor move?

PostPosted: Wed Mar 17, 2004 6:03 pm
by phractus
Yeah it moves L and R but when it does it doesent animate. I sent it to ya so you can check it out. And i figured out the mouse icon situation. Thanks for the links!
~peace~

PostPosted: Wed Mar 17, 2004 6:17 pm
by jazz_e_bob
jazz_e_boob


tee hee :wink:

PostPosted: Wed Mar 17, 2004 7:13 pm
by phractus
Its ok iv met a few jazzy boobs :wink:
can i send you something to look at for me?

PostPosted: Wed Mar 17, 2004 10:30 pm
by jazz_e_bob
most certainly sir. :)

arthouse@hard.net.au