scratch game

This is a discussion on "scratch game" within the Flash & Multimedia Forum section. This forum, and the thread "scratch 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 Feb 27th, 2008, 20:50
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
scratch game

Hi,
Im making this game in flash.

http://www.gotoandflash.com/smartpets/cleanhorse.html

you can pick up a brush and clean the horse. But after a few sweepings the movie gets slower and slower. I think I need another way to do this, but im not sure on what to google on. this is the AS i used so far:

Code: Select all
this.createEmptyMovieClip('mask_mc',0); 
bg_mc.setMask(mask_mc);
var contor:Number=0; 
 
function drawCircle(mask_mc:MovieClip):Void{
 var r:Number = 10;
 var xcenter:Number = _xmouse;
 var ycenter:Number = _ymouse;
 var A:Number = Math.tan(22.5 * Math.PI/180);
 var endx:Number;
 var endy:Number;
 var cx:Number;
 var cy:Number;
 
 mask_mc.beginFill(0x000000, 100);
 mask_mc.moveTo(xcenter+r, ycenter);
 for (var angle:Number = Math.PI/4; angle<=2*Math.PI; angle += Math.PI/4) {
    xend = r*Math.cos(angle);
    yend = r*Math.sin(angle);
 
    xbegin =xend + r* A *Math.cos((angle-Math.PI/2));
    ybegin =yend + r* A *Math.sin((angle-Math.PI/2));
    mask_mc.curveTo(xbegin+xcenter, ybegin+ycenter, xend+xcenter, yend+ycenter);
 }
 mask_mc.endFill();
} 
 
this.onMouseDown=function(){
 drawCircle(mask_mc);
 contor=1;
} 
 
this.onMouseMove=this.onEnterFrame=function(){
 if (contor==1){
  drawCircle(mask_mc);
 }
}
this.onMouseUp=function(){
 contor=0;
}
I think I need different approach..can someone lead me in the right direction?

thanks in advance,
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 Feb 27th, 2008, 22:33
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: scratch game

I have cleaned the horse without any problem
__________________
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
  #3  
Old Feb 28th, 2008, 00:42
New Member
Join Date: Feb 2008
Location: Florida
Age: 27
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: scratch game

I had no problems either

Ray Gill

Last edited by Jack Franklin; Feb 28th, 2008 at 07:19. Reason: Removed link to website. You may add a link to your signature once you have 10 posts. Please do not post URLs in the post.
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 Feb 28th, 2008, 06:16
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
Re: scratch game

thats funny,must be my crappy computer then? When I do it, it goes slow at the end. The brush doesnt follow the mouse as smooth..
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 Feb 28th, 2008, 06:47
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 844
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: scratch game

I had no problems either lol, is there another computer you can try it on, college, work etc?
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 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
  #6  
Old Feb 28th, 2008, 13:28
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
Re: scratch game

Quote:
Originally Posted by unitedcraig View Post
I had no problems either lol, is there another computer you can try it on, college, work etc?
Yeah, I will try tonight
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 Feb 28th, 2008, 15:01
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 266
Thanks: 0
Thanked 0 Times in 0 Posts
Re: scratch game

LOL thats the most amount of fun ive had this week!
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 Feb 28th, 2008, 21:26
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
Re: scratch game

Ha ha Danny !..I dont know what to say...lol

Anyway I've tried on a different computer ( a worse one than i have at home) and it was terrible!
So you guys have very good computers and I have used the wrong approach to make this game,coz i want it to run smooth on kids computers too..oh well another lesson learned..thanks anyway!
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
  #9  
Old Feb 28th, 2008, 21:44
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 844
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: scratch game

What stats do does your computer have??
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 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
  #10  
Old Feb 28th, 2008, 21:59
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
Re: scratch game

Quote:
Originally Posted by unitedcraig View Post
What stats do does your computer have??
K I had to look thatone up..
Intel Duo Core 2.00 Ghz, RAM 2GB,110mb harddisk,1280x800 TFT screen,
could be better but I'm alright with it...I mean,I'm not making this games and stuff for my computer but for any computer. Do I need something better you suppose?
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 Feb 28th, 2008, 22:02
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: scratch game

Update your flash player, test it on other browsers, IE, Firefox, Opera
See what you get
go to Adobe site and get the latest flash player plugin for browser
__________________
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
  #12  
Old Feb 28th, 2008, 22:03
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 844
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: scratch game

That's weird, here's my stats

Intel Core 2 T5500 1.67 GHz
1 GB RAM
80GB HDD

and i am on a laptop with really slow wireless internet, so if anything it should be faster on yours?

have you got the latest flash plugin?
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 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
  #13  
Old Feb 28th, 2008, 22:19
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 109
Thanks: 1
Thanked 0 Times in 0 Posts
Re: scratch game

hey I thought I had the latest flash plguin but I hadn't. Now I have and it seems to run better! Thanks for your help all.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Feb 28th, 2008, 23:09
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 844
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: scratch game

No problem, glad we could help
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 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
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] first attempt at writting php form from scratch narthex PHP Forum 10 Nov 6th, 2007 20:20
RSS Game ciancomp Other Programming Languages 0 Oct 12th, 2007 14:29
AS3 game alexgeek Flash & Multimedia Forum 7 Aug 24th, 2007 19:05
Template or from scratch Pádraig Starting Out 4 Apr 20th, 2007 01:11
setting up a poll from scratch camcool21 Webforumz Cafe 2 Dec 17th, 2006 14:40


All times are GMT. The time now is 22:59.


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