power UP

Talk about making games.

power UP

Postby The achievement » Tue Mar 14, 2006 12:56 am

how do i create a power up thats a fire ball feature like Mario? where you get a flower in mario and he can throw fireballs, how do i do that? and how do i put it in the power up box? If you dont know thats ok, but i would like to know.lol :lol:
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 Troodon » Tue Mar 14, 2006 1:26 pm

Make a animation where your actor has got a flower in his hand. When the actor collides with the power up, your animation changes. Make a variable flowerPower and make it 0 in create actor. In collision, make flowerPower = 1. In collision with fireball, make
Code: Select all
if (flowerPower = 0)
{
destroy actor(event actor);
}

:roll: That's not maybe completely correct code becouse I'm not now at home.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby The achievement » Tue Mar 14, 2006 10:15 pm

Wow thats easy, im gonna try that when i get home! thanks tekdino!




PS I got a Nintendo DS!!! I love Mario Kart DS on Wi-Fi! :D
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest