View Full Version : [FMX] I just need a lead and I think I can
raichu
May 8th, 2003, 03:56 PM
what ype of code such as function would one use to make power ups that are a small amount or time or all the time?
also anyone know of a code when u run out of ammo u loose?
raichu
May 9th, 2003, 01:56 AM
anyone know?
raichu
May 9th, 2003, 07:08 PM
i searched the forums! i once found one but know i can't!
Voetsjoeba
May 10th, 2003, 02:33 AM
Raichu, we really have to know more than that. What sort of power-ups, which game, what are they sposed to do, how long do they have to last, what actionscripting have you got so far, ... The second question ain't clear either, but you could use somethin' like this:
if (ammo <= 0){_root.gameover._visible = true} ? Again, you'll have to implement this yourself because we don't know what you have & what your structure is :-\
mlk
May 10th, 2003, 06:03 AM
just a few ideas, you could do a hittest between your player and the power up
function powerup(){
_root.hero.strength += 100 // this could be health/strength
_root.strengthpowerup.play() //this would be the tween powerup bar or any other effect
}
raichu
May 11th, 2003, 07:19 PM
thanx guys i am building a car game and i dunno how to build power ups such as speed up heath ect. and i was wondering i need sprites to go on the road how would i add pics to those above?
raichu
May 13th, 2003, 12:01 PM
hey thanx guys it works:D well sorta i am having problems but hey i cn work:D
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.