Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Final Fantasy Game (help with timers)

Status
Not open for further replies.

Butters261285

Programmer
Jan 2, 2006
29
GB
Ok Im creating a Final Fantasy director/shockwave game. I have a version that i made to test out some attack variable that i made that can be seen here...


Basically i have some questions about the general layout of the game and how to trigger events...

ill list what i have in the frames it may help you understand better.

-----------------------------------------------------
LINGO IN FIRST FRAME

global gPlayerHealth, gPlayerMagic, gEnemyHealth

on exitFrame me
set gPlayerHealth = 1500
set gPlayerMagic = 150
set gEnemyHealth = 2000
end

----------------------------------------------------
LINGO IN SECOND FRAME

global gPlayerHealth, gPlayerMagic, gEnemyHealth

on exitframe
go to the frame
put gPlayerHealth into field "hp"
put gPlayerMagic into field "magic"
put gEnemyHealth into field "boss"
if gEnemyHealth <= 0 then
go to "Winner"
end if
end

-------------------------------------------------------
LINGO ON HIT BUTTON

global gPlayerHealth, gPlayerMagic, gEnemyHealth, gAttack

on mouseUp
set gAttack = random(300) + 10
set gEnemyHealth = gEnemyHealth - gAttack
put gEnemyHealth into field "boss"
end


-------------------------------------------------------

1. What i would like to know is how i can use a timer or countdown function so that every 7 seconds the playhead will jump to a frame or marker which will be exactly the same as the main page except it will have an attack box that comes up where you choose your move etc... These attacks will lead onto another frame or marker that has a nice animation of the move being done..then returns to frame 3 again so the timer can count again// any ideas?

2. Secondly i would like to know how to utilise the timer function to make the enemy attack every 7 seconds or so..?

3. and finally i would like to know if i was to have a slow spell or a haste spell how would i alter the timer to reflect these attributes..

Thanks for reading, as you can see its mainly the timer function that i need to be told about anyone with knowledge on this would be greatly appreciated..

Thanks

Pete Butler
Tandokuno-design.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top