Two stupid questions,...pls help

Talk about making games.

Two stupid questions,...pls help

Postby Camper1995 » Wed Jan 28, 2009 6:21 pm

Hi people. I dont know why, but, i have a little problem.
1) How can I make, that when is player on left side, and when you press FIRE BUTTON, shot will be fired on left.
And when is player on right side, shot will be fired on right side... how?

And second problem: 2) I have make a topic, because I need help wit saving score.
That was working, BUT, next time, when I make new game: Super Mario Bros 3 (its very good :-D )
I am trying to make this: When you press Esc, game will be paused, how to make this, and than, there is an option: SAVE GAME,
how to save your score and lives? (And if its posible, to save your position too)
Please, can enyove explane me this, step by step please.
I can send you also my game, and you will help me...please please...

Thanks,

Camper :D
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Two stupid questions,...pls help

Postby speckford123 » Wed Jan 28, 2009 7:42 pm

well, for shots firing depending on which way your facing has been asked many times before, but i understand if you couldn't find any related topics in all that clutter :lol:
you could have it on key down
if(animindex==0)CreateActor(fireRight);
if(animindex==1)CreateActor(fireLeft);

i havn't used GE in like, 6 months, so bear with me :lol:
animindex is your current animation......index, the first animation you add is 0 the second is 1, so forth
this is assuming your right animation is 0 and your left is 1
also the CreateActor events i added is to create your projectile, thats not how its supposed to look, but thats why the script editor gives you the option to look up codes, i don't think i explained myself right, so i'm sorry if your confused :lol:

for pausing with Esc, first you'll have to tell us what do you mean by pause?
just plain pause? or a pause menu?
either way, you'll have to disable Esc exiting the game in game options

and now, you should wait for smarter, more helpful people to answer, :lol:
speckford123
 
Posts: 334
Joined: Fri May 05, 2006 6:33 pm
Score: 49 Give a positive score

Re: Two stupid questions,...pls help

Postby Camper1995 » Wed Jan 28, 2009 7:45 pm

So, thanks. For the pausing: I know how to pause game. I am not amater, but, when i get that script for pausing game, game will be paused, like mouse click, that will be also paused. But i want to pause all actors, but not that "pause screen" and mouse. :wink:

P.S.: I hate my english :D
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Two stupid questions,...pls help

Postby speckford123 » Wed Jan 28, 2009 7:51 pm

-phew-
i thought i was dealing with someone like my friend, he would ask why a cd doesn't work in a vcr :lol:

well, the pause does stop everything......
the only thing i can think of is a global variable that when set stops everything in the game thats not related to the pause menu......
that will require every action to have an if statement :?
not good for big games, cause too many if statements lag the game alot........

i think theres another way, but for now, thats all i can think of, good luck with your games! :D
speckford123
 
Posts: 334
Joined: Fri May 05, 2006 6:33 pm
Score: 49 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest