[SOLVED] simple catch the ball game

This is a discussion on "[SOLVED] simple catch the ball game" within the Flash & Multimedia Forum section. This forum, and the thread "[SOLVED] simple catch the ball game are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 25th, 2008, 14:04
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
[SOLVED] simple catch the ball game

hi
im looking for a tutorial on how to make a simple flash game. It has to look a bit like this.
items are dropped from above and u have to catch them through sliding a basket underneath it. i would b happy if i find this simple version and even happier if theres a score and a adjust the speed thing in it.Or mayb someone knows the AS for this.
i've been looking on the net for the last 3 hrs but cant find any
hope someone can help,
marieke
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 25th, 2008, 15:10
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: simple catch the ball game

Google Google Google it!
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 25th, 2008, 15:18
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
Re: simple catch the ball game

i did did did for 4 hrs..so dont think im lazy or anything.I dont think theres such a tutorial so
i found some kind of fishing game and am trying to make it work
thanks for the tip
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 25th, 2008, 15:54
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: simple catch the ball game

Do you know actionscript to create it if i tell you the way ? coz i don't have time to create it now maybe later i do it... its simple if you know the actionscript !
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 25th, 2008, 17:39
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
Re: simple catch the ball game

Quote:
Originally Posted by marSoul View Post
Do you know actionscript to create it if i tell you the way ? coz i don't have time to create it now maybe later i do it... its simple if you know the actionscript !
That would be awesome ! Yes I could figure it out on my own once u get me started.
thanks so much.
Marieke
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 25th, 2008, 17:57
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: simple catch the ball game

First of all you need two movieclips, one for your balls and one for your basket.

Then you should create a script to randomly drop balls from top of the screen with attachMovie.

Second you need to control your basket movement with your keyboard or mouse movements, with listeners.

For testing if the ball hits the basket you can use hitTest method, but it has one problem that when ball hits the basket bounding box it will return true, the best method is to calculate the ball distance with basket, it is more accurate...

tell me if you need more info
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jan 25th, 2008, 18:03
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
Re: simple catch the ball game

thanks I will give it a try!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jan 25th, 2008, 19:58
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
Re: simple catch the ball game

Code: Select all
onClipEvent (load) { _root.hitz = 0; this._alpha = 0;}onClipEvent (enterFrame) { this._y -= _root.speedz; this._rotation += 7; if (this._y<=-80) {  this._alpha = 100; } if (this._y<=-380 && _root.hitz == 0) {  gotoAndPlay(2);  _root.missed += 1;  _root.hitz = 1; }  if (_root._currentframe == 3) {  _parent.nextFrame(); } }
Im using this code at some point and it makes the ball go up..but i want it to come down..
Code: Select all
this._y -= _root.speedz;
would u know ho to change this bit i think it is?

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jan 25th, 2008, 20:03
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: simple catch the ball game

if you include your file it will be better...
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jan 25th, 2008, 20:09
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
Re: simple catch the ball game

Quote:
Originally Posted by marSoul View Post
if you include your file it will be better...
great! well i found this tutorial with the help of your actionscript pieces. its here

http://www.layoutgalaxy.com/html/htm...er47-page1.htm

and u can download the .fla source.

I'll make tennis balls out of the balloons and change the exploding bit into alpha0..i make a bucket out of the target thing.

thanks so much
marieke
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Jan 25th, 2008, 22:58
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
Re: simple catch the ball game

Ok I got it
i changed _root.speed into _root.speed = -5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] my MAMP won't play ball with php snappy PHP Forum 9 May 15th, 2008 14:46
[SOLVED] simple layout problem saltedm8 Web Page Design 13 May 2nd, 2008 18:02
[SOLVED] simple div problem hhelen Web Page Design 5 Apr 4th, 2008 14:56
[SOLVED] Can I catch up? 5 yrs out of WebDev... tigerw550 Starting Out 3 Dec 14th, 2007 03:06
[SOLVED] Simple Php Code Problem longstand PHP Forum 3 Oct 17th, 2007 21:02


All times are GMT. The time now is 01:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42