Game Help

Talk about making games.

Game Help

Postby paperboy321 » Mon Jun 09, 2008 11:38 pm

I am making a game where you have a score and a timer countdown. You have to push the right arrow key as many times as you can before the timer goes to zero. I set the timer for 15 sec, I want the key down(the right key ) to be disabled when the timer reaches zero, but you can still push the right arrow key to get more points. Can you tell me how to disable the ability to push the right arrow key (get more points).
PaPeR BoY
User avatar
paperboy321
 
Posts: 67
Joined: Mon Jun 09, 2008 11:08 pm
Score: 0 Give a positive score

Re: Game Help

Postby stevenp » Tue Jun 10, 2008 12:30 am

ok, put this in your key down event


replace the word gooey with your actor's name


if(gooey.textNumber >= 15)
{
EventDisable("Event Actor", EVENTKEYDOWN);
}

this means, if your score is more then or equal to 15, it disables the key
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score

Re: Game Help

Postby paperboy321 » Tue Jun 10, 2008 8:13 pm

There is something wrong with that. Look at it and fix it then send it back
Thanks
Attachments
New Compressed (zipped) Folder.zip
(624.64 KiB) Downloaded 96 times
PaPeR BoY
User avatar
paperboy321
 
Posts: 67
Joined: Mon Jun 09, 2008 11:08 pm
Score: 0 Give a positive score

Re: Game Help

Postby stevenp » Tue Jun 10, 2008 8:21 pm

replace left and right actor with your actor names

if(left_actor.textNumber <= 0)
{
EventDisable("right_actor", EVENTKEYDOWN);
}
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score

Re: Game Help

Postby paperboy321 » Tue Jun 10, 2008 8:26 pm

great is there a way to stop the timer at zero
PaPeR BoY
User avatar
paperboy321
 
Posts: 67
Joined: Mon Jun 09, 2008 11:08 pm
Score: 0 Give a positive score

Re: Game Help

Postby paperboy321 » Tue Jun 10, 2008 8:32 pm

PaPeR BoY
User avatar
paperboy321
 
Posts: 67
Joined: Mon Jun 09, 2008 11:08 pm
Score: 0 Give a positive score

Re: Game Help

Postby stevenp » Tue Jun 10, 2008 8:57 pm

put this in the timer

if(left_actor.textNumber <= 0)
{
//destroy timer
}

this is assuming your timer decreases your counter by 1 every second
User avatar
stevenp
 
Posts: 403
Joined: Sat Dec 22, 2007 12:49 pm
Location: canada, ontario
Score: 16 Give a positive score

Re: Game Help

Postby paperboy321 » Tue Jun 10, 2008 9:00 pm

can you check out my other topics
PaPeR BoY
User avatar
paperboy321
 
Posts: 67
Joined: Mon Jun 09, 2008 11:08 pm
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron