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?
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?
anyone know?
i searched the forums! i once found one but know i can’t!
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:
[AS]if (ammo <= 0){_root.gameover._visible = true}[/AS] ? Again, you’ll have to implement this yourself because we don’t know what you have & what your structure is :-\
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
}
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?
hey thanx guys it works:D well sorta i am having problems but hey i cn work:D
:: Copyright KIRUPA 2024 //--