Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
how to create a power up?
Old
eduboy999
Guest
 
Status:
Posts: n/a
Smile how to create a power up? - 03-18-2011, 02:04 PM

I have a tank game for a computer applications class. the tank can shoot enemies and destroy them and get points in the fastest amount of time possible. How do i make power ups?. I already have the energy capsules which are the power ups, but i want to know how to make it so if the tank touches or rolls over a energy capsule it will randomly do one of the following so that the same capsule doesn't do the same thing every time:

make tank bigger
make tank smaller
add point to score
and destroy the tank
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 03-18-2011, 02:46 PM

Make it when the tank goes over the power up thing, it activates a method which turns on variables that can be used for different things like increased power or different controls. Just think it out. Make variables for each power up then make them activate once you go over the power up. Make them activate in methods


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Reply

Tags
explosion, game, powerup, shooting, tank


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.