Question.

Talk about making games.

Question.

Postby The achievement » Mon May 15, 2006 11:29 pm

Is there a way that i can have my actor spawn at a specific coordinate on the level?

Cause i have my actor on a FollowMouse action. and when i hit game mode, i see he follows where my mouse is, and hes all the way up top, not on the level where he is supposed to be.

Can anyone help?
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby Game A Gogo » Mon May 15, 2006 11:41 pm

well, just remove the follow mouse :?
or is it you want it to follow the mouse and its not at the right pos?
if so, what method are you using?
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby The achievement » Tue May 16, 2006 12:06 am

Im making a maze game right, and i use the mouse to guide the player around the maze. amd when i hit game mode the actor goes all the way up to game mode, i want him to stay at his position.

In easier terms, when i hit game mode , how do i get him to spawn where i want?



it would be stupid to create a maze game and you use the arrow keys.
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby Game A Gogo » Tue May 16, 2006 12:13 am

on mouse up, do an action of that he dosnt follow the mouse.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby The achievement » Tue May 16, 2006 6:46 pm

ya i dont get that.

its just stupid that how i hit game mode then my actor follows the mouse way up at game mode.

i made a pretty good game to. :o
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby Game A Gogo » Tue May 16, 2006 10:47 pm

the only thing i dont get is, that he gos to the way up at the Game Mode??
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Game A Gogo » Tue May 16, 2006 10:48 pm

may be if you check here it will help you
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby DilloDude » Tue May 16, 2006 11:22 pm

I think your problem is that your actor is folowing the mouse, and your mouse position is where you clicked previously. You could have it moving to the mouse with a velocity (
Code: Select all
if (distance(xscreen, yscreen, xmouse, ymouse) > 5)
{
    moveto("Event Actor", 0, 0, 10, "Mouse Position");
}
) or you could have a start game button in the middle of the screen to click on which makes the actor follow the mouse. However, if you are using follow mouse, or even drag on mouse down, yo7 may be able to drag it through walls.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron