# Test my game

**URL:** https://forum.kirupa.com/t/test-my-game/110081
**Category:** Uncategorized
**Created:** [May 12, 2004, 8:26am UTC](https://forum.kirupa.com/t/test-my-game/110081 "2004-05-12T08:26:27Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Weazol](https://avatars.discourse-cdn.com/v4/letter/w/f17d59/32.png) [@Weazol](https://forum.kirupa.com/u/Weazol)
#### Post date: [May 12, 2004, 8:26am UTC](https://forum.kirupa.com/t/test-my-game/110081/1 "2004-05-12T08:26:27Z")

</div>

this is just the basic stuff  
the blocks will be changed to cars and i might add some sound effects  
if you get any bugs let me know

[http://www.weazolink.com/look.html](http://www.weazolink.com/look.html)

by the way this is my very first game

---

<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 25, 2004, 10:00pm UTC](https://forum.kirupa.com/t/test-my-game/110081/2 "2004-05-25T22:00:29Z")

</div>

you can move the corpse… thats creepY!

---

<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 25, 2004, 11:28pm UTC](https://forum.kirupa.com/t/test-my-game/110081/3 "2004-05-25T23:28:55Z")

</div>

Upload the .fla and I’ll do the random code for ya if ya want.

cheesy\_x: it is quite bizarre ain’t it.

---

<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 25, 2004, 11:38pm UTC](https://forum.kirupa.com/t/test-my-game/110081/4 "2004-05-25T23:38:29Z")

</div>

dude, its a crawling zombie!

---

<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 26, 2004, 2:27am UTC](https://forum.kirupa.com/t/test-my-game/110081/5 "2004-05-26T02:27:04Z")

</div>

[www.weazolink.com/look.fla](http://www.weazolink.com/look.fla)

the three problems i have right now are  
randomizing the cars  
the moving corpse  
and the high scores wont show at the beggining

if you can help me out thatd be great

---

<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 26, 2004, 4:29am UTC](https://forum.kirupa.com/t/test-my-game/110081/6 "2004-05-26T04:29:11Z")

</div>

i’ll post it once im done.

---

<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 26, 2004, 6:13am UTC](https://forum.kirupa.com/t/test-my-game/110081/7 "2004-05-26T06:13:31Z")

</div>

ok thanks

---

<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 28, 2004, 11:41am UTC](https://forum.kirupa.com/t/test-my-game/110081/8 "2004-05-28T11:41:32Z")

</div>

ummm  
put this in ur actions frame assuming that the fla is 500 pixel in width(i won;t put a with statement so its easier to understand  
\_global.speed=10  
car.onEnterFrame = function(){  
if (car.\_x \> 500){  
\_global.speed=random(40)  
car.\_x = -50  
}  
car.\_x = car.\_x + speed  
}  
that works for me if i have a instance named car  
just copy and paste that script for each car u have and replace it with car1 hen car 2 or so

---

<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 28, 2004, 8:39pm UTC](https://forum.kirupa.com/t/test-my-game/110081/9 "2004-05-28T20:39:48Z")

</div>

doesnt work… cars appear out of nowhere

---

<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 28, 2004, 8:42pm UTC](https://forum.kirupa.com/t/test-my-game/110081/10 "2004-05-28T20:42:43Z")

</div>

im on it captain!

Hmm, this is interesting…

onClipEvent (enterFrame) {  
if (\_root.boy, hitTest(\_root.block)) {  
\_root.board.lives = \_root.board.lives-1;  
tellTarget ("\_root.blood") {  
gotoAndPlay(2);  
#endinitclip  
}  
}  
}

INVULNERABILITAY!

---

<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 28, 2004, 9:15pm UTC](https://forum.kirupa.com/t/test-my-game/110081/11 "2004-05-28T21:15:34Z")

</div>

how is that invulnerabilitay?

---

<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 28, 2004, 9:19pm UTC](https://forum.kirupa.com/t/test-my-game/110081/12 "2004-05-28T21:19:39Z")

</div>

oh lol…i see it now… except you cant win now

---

<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 29, 2004, 6:43am UTC](https://forum.kirupa.com/t/test-my-game/110081/13 "2004-05-29T06:43:56Z")

</div>

ok, I can’t get to a comp. with flash on it for at least a couple of days so here goes.  
First, get rid of the tweens in the movie clips.  
Secondly, go back to the main timeline and click on one of the cars and add this code:

On clipevent (load){  
speed = random(20)  
}  
On clipEvent (enterFrame){  
this.\_x += speed;  
if (this.\_x \>= 500){  
this.\_x = -20;  
speed = random(20)  
}  
}

Or something like that. Change the + and \> if you want them to go in the oppisite direction. Also have a code which says if speed \< 5 then speed = 5. Hope it helps, post up if you have any troubles.

-Skinny
