The Daily Click ::. Forums ::. Klik Coding Help ::. Can someone help me? (paint-app)
 

Post Reply  Post Oekaki 
 

Posted By Message

KevinHaag



Registered
  28/01/2005
Points
  266

VIP Member
29th March, 2005 at 19:06:37 -

Im making a paint-app in TGF. Ive tried MMF but I dont like it (the interface is too complicated). Anyway, I have it so when you hold down the left mouse button, it pastes a black dot into the background (the paint-brush).
Here are the events:

*ALWAYS*--hide windows mouse pointer--Set X position of [paintbrush] to X position of windows mouse pointer--Set Y of [paintbrush] to Y of mouse pointer.

*REPEAT WHILE LEFT MOUSE IS PRESSED*--Paste [paintbrush] into background


But when i test it, it leaves white spaces in between the dots because it doesn't paste the dots fast enough...

Is there a way of fixing this problem using a fast loop or something?

Please give me some suggestions!

 
Image
http://www.kevinhaag.ca

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
29th March, 2005 at 20:01:37 -

I'm pretty sure there are articles on this.

http://create-games.com/cs_search.asp

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
29th March, 2005 at 20:02:53 -

Im fairly sure there are screengrab objects that can help you.

 
.

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
30th March, 2005 at 03:06:09 -

instead of making 2 posts, just edit your previous one!
As for your question: don't know, tried to do that sometime but couldn't find a way.
MMF's interface sux, but i think you'll have to stand out with it.

 
n/a

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
31st March, 2005 at 15:27:03 -

perhaps

user clicks with left button
set x of black dot to xmouse
set y of black dot to ymouse

repeat while left mouse key pressed
---> start loop 1 for 50 times

loop trigger 1
set x of black dot to x of black dot + sin (angle between dot and mouse) * 2
set y of black dot to y of black dot + cos (angle between dot and mouse) * 2
paste dot into background

you will also need an extension for calculating sin and cos and the angle between two points. i think advanced math object can do both



Image Edited by the Author.

 
Visit www.crobasoft.com or you're a Noob.
   

Post Reply



 



Advertisement

Worth A Click