coin tutorial

Game Editor comments and discussion.

coin tutorial

Postby j2graves » Thu Dec 27, 2007 10:45 am

early on, I used the Destroyactor function, but that didn't work because I cloned the coin actor and all the clones dissappeared when the player collided on the coin actor, so now I use the visibility state function and it works perfectly. also, you can make the coins reappear later in the same place this way. I hope this helps someone.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: coin tutorial

Postby Kalladdolf » Thu Dec 27, 2007 6:07 pm

ok, I think I smell some mistake here.
You can also do the collection with the destroyActor function, but!
you tell the coin:
collision -> any side of player -> destroy actor: event actor.
I promise you, this will work.
I think what you did was:
player -> collision -> any side of coin -> destroy actor: coin.
the difference is:
coin will destroy the whole group of coins, event actor means: here I am, just destroy me. PLING!
:D
the re-appearing thing is quite right.
gotta good point there =D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: coin tutorial

Postby j2graves » Fri Dec 28, 2007 10:06 am

you were right. I used to do it as a player event. now I have it as the coin's event.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: coin tutorial

Postby DarkParadox » Mon Jan 07, 2008 11:18 pm

OR
you could destroy
"COLLIDE ACTOR"
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: coin tutorial

Postby j2graves » Sat Jan 12, 2008 6:37 pm

visibility state allows the coin to reappear in the same place
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron