PDA

View Full Version : platform game


edmarriner
12-05-2004, 01:26 PM
ok this is what i have so far...

[flash width=550 height=400 loop=false:59fd151b70]http://edmarriner.co.uk/edmarriners%20newsite%20look/images/flash/games/paltform.swf[/flash:59fd151b70]
if this takes too long to load try clicking here (http://edmarriner.co.uk/ed.htm)


the reason im making the game is so i can learn more as and more about flash.

can anyone tell me how to put more than one hitTest() in a frame.

i tried just puting it twice but that did not work. i also tries this ;

Code:
_root.onEnterFrame = function() {
if (man.hitTest(entrance))|| (man.hitTest(spikes) {
_root.gotoAndPlay(23);
}
}


but i want it when you hit into the spikes you go to one frames and if you into the entrance mc you go to another.

please can someone tell me how this is done.
thanks
ed
:D[/url]

Nexus
12-06-2004, 07:08 PM
This should work...

_root.onEnterFrame = function(){
if (man.hitTest(entrance)) {
gotoAndPlay( "whatever" )
}
if (man.hitTest(spikes)) {
gotoAndPlay( "gameover" )
}
}

Make sure you have the instance names for each movieclip already set.

edmarriner
12-07-2004, 09:15 AM
thanks . i did try that before but i made a mistacke.


chears.
:D

Also can anyone tell me how to make text input text. Then when the user types i the password (note: there will be about 25 differnt passwords ) depending on what they put in it takes them to a curtain frame.

This way when the user of the game completes a level i tell them the passowrd to skip to the level there on now. so when they leave the game next time they come on they can type the password in and carry on with the level there on !

:D

denacioust
12-07-2004, 02:43 PM
You joined my site didn't you?
flashbox.proboards15.com


Anyway change the graphics cause the graphics you have are stolen from some download on some site.
fix the jump thing so that you don't only jump while you have space down and last thing just thought i'd tell you that || in AS means or.

theneedforsex
12-08-2004, 08:38 AM
About the text:

Make a textbox, get the panel called "Text Options"
then, the place where it says "static text". Change it to "Input Text". Below, write the name of the Variable you want to store the input in.

Then make a button:
on (release) {
if (cheat=="monkey") {
gotoAndPlay("MonkeyLevel", 1);
}
}

Think thats it!

edmarriner
12-08-2004, 02:47 PM
hey thanks for the text box thing . it works like clockwork.
its brill.

oh and when you say
fix the jump thing so that you don't only jump while you have space down
do you mean that to jump you can press space or somthink like shift?

denacioust
12-08-2004, 03:26 PM
No I mean that if you release space while hes jumping he falls back down and just is weird.

Did you join my site flashbox.proboards15.com?

arkhan
12-08-2004, 03:54 PM
I prefer it that way..ever played mario?

edmarriner
12-09-2004, 09:18 AM
No I mean that if you release space while hes jumping he falls back down and just is weird.

Did you join my site flashbox.proboards15.com?

i argree with arkhan.

and yes im " ed " in flashbox.proboards15.com :D

also can anyone recomend a book or 2 on actionscript(*actionscript for gaming*). if poss under £65 ($124). i looked at the section in the fourm but it wasnt very helpfull.

is there any :idea: ideas :idea: for the game just post them here

bobmasedo
12-09-2004, 09:25 AM
hey in the first level the exit says entrance why is that?
I agree that you should be able to stop jumping but at present you can start jumping again within that jump which is kinda wierd
you should do scrolling credits that you can shoot...

edmarriner
12-09-2004, 09:31 AM
becuse its the first level it says what all of they are note: i can see what you mean ... i`ll change it now

thanks :D

edmarriner
12-13-2004, 10:07 AM
can anyone help , i have a problem...

The man on level 2,3 and 4 stays in the jump possition. :?:


thanks
ed :D