-
please help with script for a game..
gday guys...
i'm making a flash game for an assignment and i was wondering if you guys could help me with working out how to do my actionscript...
ok so basically there's a puzzle where you choose to turn a wheel clockwise or anti-clockwise... and if you turn in the correct way then it removes a stone.. if you choose the correct combo (for example cl | anti-cl | anti-cl | cl | anti-cl ) it will have removed 5 stones and the puzzle is complete... but each time you turn it the wrong way, all the stones move back in and you start again...
if that makes any sense.. i was wondering how i would script this..
do i make each different stone removed on a diff frame, and on each frame there is a diff code for direction it wants the wheel to turn. and then if you do it wrong it goes back to the first one?
sorry i don't know whether this makes sense to anyone else..
thanks for ya help anyway...
steve rat
-
Senior Member
an example will be of great help..
or some code
-
well it's currently in my head so its hard..
um.. the closest example that i can give is what i am modelling this puzzle on.. i know it's french and stuff but go here and then choose any adventure, and after the opening scene, you will notice the first puzzle involves trying to break houdini free using a combination of keys.. each one you do right, he gets a little bit more free but if you muck up, it starts again...
this basically what im doing..
tell me if this makes sense
thanks for ya help
steve rat
-
-
i didn't know it was that hard a question??
anyone?? is it just me or is it dead season?
steve rat
-
I think I get the idea of what u're trying to say...
Hmm...
How bout have a variable, such as "progress", and have it start as zero each time.
If they get the first clockwise right, it should be like
if (progress==0 and turn="clockwise") {
progess++;
with stone1{
_x=800;
_y=800; (this is to get them off the screen)
}
else {progress=0 (then assign the locaton at which each of the stones should be)
I dunno, but I hope this might help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|