Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Old 05-24-2004, 05:09 AM   #11
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

yup, sorry for that
__________________
‚€* GOD Is Near ‚€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 08-22-2006, 07:49 PM   #12
scriptprogramer21
Registered User
 
Join Date: Aug 2006
Posts: 22
Default

hey everyone im wroking on a project almost like a online version of milton bradely's card game uno and i need a script or how to deal out random cards and im not toatally noobie on flash i just cant find anything on how to produce random buttons.. oh and the cards are in "symbol" button format so the user can click the card...
scriptprogramer21 is offline   Reply With Quote
Old 03-01-2007, 07:11 AM   #13
shift
Registered User
 
Join Date: Jan 2005
Posts: 16
Red face Help

Hi,

I want to make the an ascending random function.

This is the code:

var totalFrames = 7;
this.gotoAndStop(Math.floor(Math.random()*totalFra mes+1));

What i mean is, when the frame choosen is 4 then the next random frame be higher than 4. When it hits the top then the function would stop.

Please let me know if there is a way to do this.

Thanks a lot,
Adrian

Last edited by shift; 03-01-2007 at 07:13 AM.
shift is offline   Reply With Quote
Old 04-20-2007, 03:42 AM   #14
darrenleong
Registered User
 
Join Date: Apr 2007
Posts: 4
Default

hi.. Erm.. i have a problem with my project. When i click the start button right, it will run randomly among the 60 circles and den come to a stop at the random selected circles. i need a script. and i have no knowledge about flash at all.. Hope to hear ur reply asap. thanks


http://download.yousendit.com/B14BEFCC4ED1600F

the game is my example of my project..

Last edited by darrenleong; 04-20-2007 at 03:48 AM.
darrenleong is offline   Reply With Quote
Old 01-12-2012, 04:44 AM   #15
jocelynx
Registered User
 
Join Date: Jan 2012
Posts: 7
Default

Hey guys, I am newbie in flash. Im working on this quiz game whereby the player will shoot the correct balloon. When the player shoot the correct answer , the score will increase by 1. The player also have to complete the quiz within the time limit of 10 seconds.

Now my problem is , I dont know how to store the questions and answers in the xml file and make it appear on my flash game.

I have also attached how the game is like in this thread.
Please advise!! Much appreciated!
jocelynx is offline   Reply With Quote
Old 01-12-2012, 09:05 AM   #16
Sreenivas
Registered User
 
Join Date: Jan 2012
Posts: 15
Default

Quote:
Originally Posted by darrenleong View Post
hi.. Erm.. i have a problem with my project. When i click the start button right, it will run randomly among the 60 circles and den come to a stop at the random selected circles. i need a script. and i have no knowledge about flash at all.. Hope to hear ur reply asap. thanks

the game is my example of my project..
(in AS2)
this is easy by creating a function to find a number.
1. Create your start button.
2. in my method, I'd create a 60 frames mc with each frame having one circle of the 60 highlighted, or, if you want the other circles to disappear, a 61 frames mc, with first frame having all circles and other frames having only one of the circles.
3. in root,
ActionScript Code:
start.onPress = function(){ var circleNum:Number = math.floor * (math.random * (61-1)) _root.circle.gotoAndStop(circleNum)
Sreenivas 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


All times are GMT. The time now is 01:59 AM.

///
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.