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?
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.
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