473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Help with simple game

I am brand new to flash and I want to make contains and a movie clip called ball. In the first frame it is just the regular ball but then in the second-sixth frames, the ball is breaking and disappearing. I want to make it so that you only see frame one until you click on the ball, then frame 2 starts. Could somebody help with this code?

Thanks for your help,
Jordan
Aug 14 '07 #1
2 1330
nomad
664 Expert 512MB
I am brand new to flash and I want to make contains and a movie clip called ball. In the first frame it is just the regular ball but then in the second-sixth frames, the ball is breaking and disappearing. I want to make it so that you only see frame one until you click on the ball, then frame 2 starts. Could somebody help with this code?

Thanks for your help,
Jordan
some hints for you.
You will need to have at least 3 layers. one for labels the other for the ball.
You need to make the ball a button in frame one. and then add this script to it:
on (release) {
//Movieclip GotoAndPlay Behavior
this.gotoAndPlay("ballmove");
//End Behavior
}

in frame 2-6 you make the ball break apart using tween (you need to find out how to do this one...

In the label layer. click on frame and Insert a keyframe. Under the Properties menu box look for Frame (left side) and click on the box. Type in ballmove
Under that you will see another box call Label Name select it and select Name

Layer 3 will be called actions, make a keyframe on frame 6. In the action window type stop();

How this helps you
nomad
Aug 14 '07 #2
some hints for you.
You will need to have at least 3 layers. one for labels the other for the ball.
You need to make the ball a button in frame one. and then add this script to it:
on (release) {
//Movieclip GotoAndPlay Behavior
this.gotoAndPlay("ballmove");
//End Behavior
}

in frame 2-6 you make the ball break apart using tween (you need to find out how to do this one...

In the label layer. click on frame and Insert a keyframe. Under the Properties menu box look for Frame (left side) and click on the box. Type in ballmove
Under that you will see another box call Label Name select it and select Name

Layer 3 will be called actions, make a keyframe on frame 6. In the action window type stop();

How this helps you
nomad
Okay, I'll try it out. Thanks for the help.
Aug 14 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
5
by: Tlo | last post by:
hello, i would like to do the following, and as i had never used python in a network framework i would like to have opinions on this : i would like to provide some kind of network quizz game,...
4
by: Jacob H | last post by:
Hello list... I'm developing an adventure game in Python (which of course is lots of fun). One of the features is the ability to save games and restore the saves later. I'm using the pickle...
0
by: LRW | last post by:
This has to do with mySQL 101. I know it's supposed to be super simple, but I'm an idiot. I can't get my join to work (1st time I've tried doing joins.) I've read...
6
by: Kartik | last post by:
Hello, I was trying to develop a game in c++ ( text mode ), but I couldn't figure out how to make rest of the elements moving in the game while waiting for the player's input, or, how to accept...
2
by: Vitali Gontsharuk | last post by:
Hi! I have a problem programming a simple client-server game, which is called pingpong ;-) The final program will first be started as a server (nr. 2) and then as a client. The client then...
2
by: Vicissitude24 | last post by:
Our instructor had given us a task to create a four-in-a-row game in C+ +(DEV). I was able to create a 2player human-human game. but unfortunately our instructor added new details. to add an AI...
1
by: HighBuddha | last post by:
Hello, i have a question about game trees. I've been given an assignment in class (highschool) and the assignment is to write a program the simulates The Game Of Eight. The game runs like this: ...
2
by: LilMeechc20 | last post by:
Hello, I have a group assignment that I have to do. We have to write a Tic Tac Toe game. One person in my group has managed to write the code for a multiplayer (human -vs- human) game and I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.