×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Final Fantasy Game (help with timers)

Final Fantasy Game (help with timers)

Final Fantasy Game (help with timers)

(OP)
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...

http://www.tandokuno-design.com/hosted/FF_fight.dcr

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

RE: Final Fantasy Game (help with timers)

What you need is "TimeOut objects". Have a look at Director help on this subject.

Kenneth Kawamoto
www.materiaprima.co.uk

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close