mouse pointer movement

Game Editor comments and discussion.

mouse pointer movement

Postby phractus » Tue Mar 16, 2004 11:10 pm

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~
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby Just4Fun » Wed Mar 17, 2004 1:41 am

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
Last edited by Just4Fun on Wed Mar 17, 2004 3:06 pm, edited 1 time in total.
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby makslane » Wed Mar 17, 2004 12:42 pm

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"
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: mouse pointer movement

Postby makslane » Wed Mar 17, 2004 12:49 pm

phractus wrote: It works fine exept that when the actor is moving east and west the animation doesent run.


But, the actor move?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby phractus » Wed Mar 17, 2004 6:03 pm

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~
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby jazz_e_bob » Wed Mar 17, 2004 6:17 pm

jazz_e_boob


tee hee :wink:
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby phractus » Wed Mar 17, 2004 7:13 pm

Its ok iv met a few jazzy boobs :wink:
can i send you something to look at for me?
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby jazz_e_bob » Wed Mar 17, 2004 10:30 pm

most certainly sir. :)

arthouse@hard.net.au
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron