Stick Page Forums Archive

How to make a 'Storm the House' style game [Flash][Actionscript]

Started by: Raffi | Replies: 24 | Views: 4,593 | Closed

Raffi
2

Posts: 4,326
Joined: Aug 2006
Rep: 10

View Profile
Jun 23, 2007 1:34 PM #39933
This is how you make a game like 'Storm The House' (on old SP). some parts are kinda comlex, but this tut should help.

1. Create (suprise) a Movie Clip.

2. Create two key frames in the MC.

3. Label the first keyframe 'run' and the second one 'die'

4. The 'run' keyframe will have (suprise) an MC of your character running, and the 'die' frame... well... you know what happens.

5. now add both of the key frames the action 'stop;'

6. Go back to the scene (exit the Movie Clip by clicking anywhere but where the MC is) and give the char the action:

on (release) {
gotoAndPlay ("die");
}

This code will make the character die when you click him.

7. Now tween the char across the page to where the castle/ house etc. is.

8. Now test your movie. If you want more chars to make it harder, copy the char and paste it in another layer.




Score/Kill Counter

Make a dynamic text box and give it the instance name 'score'.

now, at the first frame of your game (still in scene 1), click on the dynamic text box and type in '0' (make sure the text alignment is in the middle)

Now go to the char MC (double click) and double click on the char in the 'die' frame. Now add this code (It's your choice where u put it):

_root.score.text++;

This adds a point to the score counter

Soz i dont know how to make a health counter. you'll have to work out for yourself.

Now test the movie. You now have your very own House Defender Game Thing! Hooray.

Here's mine:

http://www.swfup.com/file/13743#view

Click on the stick figure heads to shoot them


(Just tell me if the tut is wrong/the file doesn't work, etc.)
*jynx*

Posts: 0
Joined: Jul 2025
Jun 23, 2007 1:40 PM #39934
great tut, maybe pictures and explain what the codes do
Raffi
2

Posts: 4,326
Joined: Aug 2006
Rep: 10

View Profile
Jun 23, 2007 1:57 PM #39937
i'll do that now. Thx for remindin jynx
pali112

Posts: 8
Joined: Sep 2006
Rep: 10

View Profile
Jun 23, 2007 2:21 PM #39947
thats doesn't working :(
Raffi
2

Posts: 4,326
Joined: Aug 2006
Rep: 10

View Profile
Jun 23, 2007 2:43 PM #39948
what's not workin?
pali112

Posts: 8
Joined: Sep 2006
Rep: 10

View Profile
Jun 23, 2007 3:10 PM #39950
Quote from Raffi Stick
what's not workin?

I try to make that game, but game doesn't working.
Raffi
2

Posts: 4,326
Joined: Aug 2006
Rep: 10

View Profile
Jun 23, 2007 5:04 PM #39975
well wat flash player do u have?
LN3uq
2

Posts: 2,457
Joined: Dec 2004
Rep: 35

View Profile
Jun 23, 2007 6:28 PM #40005
Nice tut, if it works.
New Generation
Banned

Posts: 1,713
Joined: Mar 2007
Rep: 10

View Profile
Jun 23, 2007 7:22 PM #40035
Lol really bad explained, you should write that you should aniamte the chars in the tow keyframes the one run is running adn the other second kyeframe is die, lol also how can I animate a run in one keyframe, impossible.
Raffi
2

Posts: 4,326
Joined: Aug 2006
Rep: 10

View Profile
Jun 24, 2007 7:23 AM #40256
Make a movie clip. it's too obvious. lol
pali112

Posts: 8
Joined: Sep 2006
Rep: 10

View Profile
Jun 25, 2007 4:43 PM #40665
Quote from Raffi Stick
well wat flash player do u have?

umm... flash player 8
MetalDog

Posts: 100
Joined: Mar 2007
Rep: 10

View Profile
Jun 25, 2007 9:49 PM #40727
wow, thanks raffi. Good animation..

I miss your animations raffi stick, what happened to you. PM me.
stealth212
2

Posts: 17
Joined: Jun 2007
Rep: 10

View Profile
Jun 26, 2007 5:06 AM #40857
Nice, but without the health thing its kinda missing a bit. I've been wondering about stuff like scores for a while so im gonna go and test this out now :D . It's a good tut btw, nice and detailed.
Raffi
2

Posts: 4,326
Joined: Aug 2006
Rep: 10

View Profile
Jun 26, 2007 4:05 PM #40957
the health style i learnt isnt good. b asically, add the code _root.score.text++;
when they die, and the code _root.health.text--; at the frame where they reach the object by the way u find a glitch where if they die and you click on them they come back to life lol
-slanted-

Posts: 0
Joined: Jul 2025
Jun 27, 2007 12:36 AM #41095
um how do i name the frame?
and you didnt explain hoe to make him run toword the base or stop running when he dies
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.