Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-08-2005, 06:52 PM   #1
infernojericho
Registered User
 
Join Date: May 2005
Posts: 1
Default help on simple questions

Hi guys, I am a novice on Flash, and I am still have a hard time in getting over it's concepts of frames and stuff.

Anyway, the bad news is that I have a little assignment that is due in a matter of hours and I am stuck in a few parts and I am desperate for help.

My assignment requires me to do a little jigsaw puzzle game.

I have got most parts done, what I'm stuck big time is:

1. The assignment requires me to use a timer, so that if the person can't finish the jigsaw in time it should prompt Game Over or something. I know that I should use the gettimer() function. But I realized that although the timer works (by using a dynamic text) but it does not refresh. What's more is that the timer seems to start counting right on the very moment the flash file has loaded. I only want it to start when the game actually begins.

My code of when clicking on the start game button is:
on (release) {
gotoAndStop(2); //Reveals the frame of Jigsaw Puzzle Pieces

Time = getTimer()/1000;
GameTimer.text = Math.floor(Time);
}

2. Another thing I am stuck with is how to detect whether all the pieces are fully assembled thus ending the game. How the program works is that if the jigsaw piece is placed correctly it will snap firmly (stoping the Drag action). So I was wondering if I wrote something like:

if ((jigsawinstance1.dragStop=true) and..... (jigsawinstance20.dragStop=true)
{ Message.text = "Congradulations"}

Am I on the right track???

Again, I will greatly, greatly appreciate any feedbacks. Thanks again.

Infernojericho
infernojericho is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two simple questions bigleo23 ActionScript 2.0 1 04-26-2006 01:49 AM
simple questions - sound looping senor-taco ActionScript 2.0 1 04-22-2006 04:39 PM
Simple (Me thinks) questions :) Mario912 Simple Stuff (Newbies) 8 01-10-2003 10:41 PM
2 simple questions I hope rocko ActionScript 1.0 (and below) 2 12-17-2002 08:19 AM
3 Simple Questions. Thank U 4 Your Help. Gerebeto ActionScript 1.0 (and below) 2 10-01-2002 02:00 PM


All times are GMT. The time now is 12:47 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.