Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,392 Programmers. There are 1,406 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

How do I create this?

 
Reply to this topicStart new topic

How do I create this?, Autistic child game

ladybug72
post 22 Apr, 2008 - 12:41 PM
Post #1


New D.I.C Head

*
Joined: 22 Apr, 2008
Posts: 5



Can someone tell me how I can go about creating a game like this with flash? I'm creating a game for an autistic child and I'm new to actionscripting

http://do2learn.com/games/whatsdifferent/index.htm

I know this game isn't made in Flash but i want to create something just like this in Flash crazy.gif

This post has been edited by ladybug72: 22 Apr, 2008 - 12:59 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


copenhagen
post 23 Apr, 2008 - 08:47 AM
Post #2


New D.I.C Head

*
Joined: 16 Mar, 2008
Posts: 30

It is easy smile.gif

Make a rectangle on frame 1 and write something like "start game" on it. Then make sure the rectangle is selected and turn it into a symbol by pressing F8. Choose "button" in behavior and name it "startButton", then click "ok". Now click on your button a couple of times on the screen so that the timeline changes into four states called "up, over, down and hit. Choose the one called "down" and insert a keyframe using F6. Then change the color of the button or whatever you wanna change, but change something about its look. After that look in the property inspector of the button and give it an instance name of
QUOTE
startButton
. Then go back to scene 1 (look in the top where it says "scene 1 - Button). When you are back in scene 1, then mark frame 1 and use F9 to open the actionscript panel. Type in this code:
CODE

startButton.onRelease = function() {
gotoAndStop(10);
}


Then insert a keyframe on frame 10 and make a Question. Insert four new buttons, who goes to different or the same keyframe depending on the users answer. So the code might look like this for a button which has the correct answer:
CODE

correctAnswerButton1.onRelease = function() {
gotoAndStop(20);
}

on frame 20, you then insert some text or happy animations telling the user that the answer was correct.

And if the user clicks the button with a wrong answer, the code for the button might look like this:
CODE

wrongAnswerButton.onRelease = function() {
gotoAndStop(30);
}

On frame 30 you then insert a keyframe, and write a text or whatever, telling that the answer was wrong.

Just make sure all the code is written in the actionscript panel, who says frame-actionscript and NOT button-actionscript.

This post has been edited by copenhagen: 23 Apr, 2008 - 09:15 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

ladybug72
post 24 Apr, 2008 - 05:29 AM
Post #3


New D.I.C Head

*
Joined: 22 Apr, 2008
Posts: 5

Cool thank you very much!!!!!!!!!!!!!!!! icon_up.gif smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 05:06AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month