help with game

Game Editor comments and discussion.

help with game

Postby Zehper48 » Mon Jun 12, 2006 8:58 pm

Hi, i am making a frogger game but, i need help with making the cars move automaticaly over and over, and how to end the game after you lose 3 lives :) :D :!: :evil: :twisted:
User avatar
Zehper48
 
Posts: 241
Joined: Sun Jun 11, 2006 1:34 am
Location: Advanced Noob
Score: 4 Give a positive score

Postby speckford123 » Wed Jun 21, 2006 12:55 pm

Well for the cars try an out of vision event to destroy them and a destroy actor event to re-create them and you want on a create actor event with script editor " CreateActor("car") " and create it where you want it. As for lives make an actor variable (call it lives, etc.)
and when you die have a destroy actor event and try,
if (lives>0)
CreateActor("player");
if (lives>0)
lives=lives-1;

This should only create your player when lives are greater than 0.
Last edited by speckford123 on Wed Jun 21, 2006 1:05 pm, edited 1 time in total.
speckford123
 
Posts: 334
Joined: Fri May 05, 2006 6:33 pm
Score: 49 Give a positive score

Postby speckford123 » Wed Jun 21, 2006 12:59 pm

sry, also put it on view so on create actor " lives=3 "
and for the code put
if (view.lives>0)
CreateActor("player");
if (view.lives>0)
view.lives=view.lives-1;

and also on view put a draw actor event
if (lives==0)
Moveto("view" 0,0,") // or close window etc. whatever you want it to do.
speckford123
 
Posts: 334
Joined: Fri May 05, 2006 6:33 pm
Score: 49 Give a positive score

Postby Zehper48 » Wed Jun 21, 2006 1:23 pm

thanks alot
I like score
User avatar
Zehper48
 
Posts: 241
Joined: Sun Jun 11, 2006 1:34 am
Location: Advanced Noob
Score: 4 Give a positive score

Postby Zehper48 » Wed Jun 21, 2006 1:23 pm

thanks
I like score
User avatar
Zehper48
 
Posts: 241
Joined: Sun Jun 11, 2006 1:34 am
Location: Advanced Noob
Score: 4 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron