# \[FMX\] I just need a lead and I think I can

**URL:** https://forum.kirupa.com/t/fmx-i-just-need-a-lead-and-i-think-i-can/20458
**Category:** flash
**Created:** [May 8, 2003, 7:56pm UTC](https://forum.kirupa.com/t/fmx-i-just-need-a-lead-and-i-think-i-can/20458 "2003-05-08T19:56:11Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![raichu](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@raichu](https://forum.kirupa.com/u/raichu)
#### Post date: [May 8, 2003, 7:56pm UTC](https://forum.kirupa.com/t/fmx-i-just-need-a-lead-and-i-think-i-can/20458/1 "2003-05-08T19:56:11Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 9, 2003, 5:56am UTC](https://forum.kirupa.com/t/fmx-i-just-need-a-lead-and-i-think-i-can/20458/2 "2003-05-09T05:56:45Z")

</div>

anyone know?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 9, 2003, 11:08pm UTC](https://forum.kirupa.com/t/fmx-i-just-need-a-lead-and-i-think-i-can/20458/3 "2003-05-09T23:08:02Z")

</div>

i searched the forums! i once found one but know i can’t!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 10, 2003, 6:33am UTC](https://forum.kirupa.com/t/fmx-i-just-need-a-lead-and-i-think-i-can/20458/4 "2003-05-10T06:33:05Z")

</div>

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 :-\

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 10, 2003, 10:03am UTC](https://forum.kirupa.com/t/fmx-i-just-need-a-lead-and-i-think-i-can/20458/5 "2003-05-10T10:03:39Z")

</div>

just a few ideas, you could do a hittest between your player and the power up

```auto

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
}

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 11, 2003, 11:19pm UTC](https://forum.kirupa.com/t/fmx-i-just-need-a-lead-and-i-think-i-can/20458/6 "2003-05-11T23:19:26Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 13, 2003, 4:01pm UTC](https://forum.kirupa.com/t/fmx-i-just-need-a-lead-and-i-think-i-can/20458/7 "2003-05-13T16:01:20Z")

</div>

hey thanx guys it works:D well sorta i am having problems but hey i cn work:D
