PDA

View Full Version : Drawing game



ocelot
November 8th, 2005, 11:08 AM
Im trying to make a drawing game but it looks all wrong, The line is too thick, the paper is pixelated, and how do I add a bar of how much Led or ink is left?

Too big too upload.. hes an example!

optixburn
November 8th, 2005, 02:14 PM
Im trying to make a drawing game but it looks all wrong, The line is too thick, the paper is pixelated, and how do I add a bar of how much Led or ink is left?

Too big too upload.. hes an example!

Well you'll need to make sure the flash file doesn't scale ... this might be one reason why it looks like it's too big. I couldn't get the pencil to move or draw anything on the paper so i couldn't tell you if the line is to thick or not.

You should be able to tell the file not to scale in the settings panel. Then click on HTML at the top of the panel ... should be towards the bottom a drop down menu called Scale: Default(show all) ... change this to no scale. should be the correct size then.

NiñoScript
November 8th, 2005, 04:56 PM
well, the pencil is used with the arrow key, its draw with the spacebar, and the pencil is rotated(??) with control and shift...
for the thickness off the line, i think thats controlled in the lineStyle parameters
and your line... those are lots of circles, not a line :P, if u want a line, you have to make lineTos to the position of the pencil... hope that helps
(i think ill make an example, just wait a bit) :angel:

NiñoScript
November 8th, 2005, 06:32 PM
like ive said before... i just love myself :angel:

arrows = movement;
spacebar = drawing;

click on a coloured square to change the lines color;
click on one of the three lines in the top-left corner to change the thickness;

enjoy ;), im pleased to help whenever i can :pleased:

PS: it has some obvious errors, but i left that the way it is, so u can play with the code and get the solutions for yourself :book:

nathan99
November 9th, 2005, 04:00 AM
http://www.kirupa.com/forum/showthread.php?t=184982

PS this is way out of date

ocelot
November 9th, 2005, 12:08 PM
OOOk... This ok?

NiñoScript
November 9th, 2005, 03:35 PM
one of the colors isnt working, but it seems far better than in the starting

btw, did u just copy my buttons? :P

Pattt
November 9th, 2005, 03:42 PM
NiñoScript, nice pen! :)
ocelot: http://www.kirupa.com/developer/actionscript/tricks/drawing_api.htm

:)

ocelot
November 9th, 2005, 04:05 PM
one of the colors isnt working, but it seems far better than in the starting

btw, did u just copy my buttons? :P Yeah, sorry. Im a n00b at flash..
So is my brother, Ryanshah1.. He pretends he's good though

NiñoScript
November 9th, 2005, 04:28 PM
Yeah, sorry. Im a n00b at flash..
So is my brother, Ryanshah1.. He pretends he's good though
haha :lol:
i'll keep that in mind XD


NiñoScript, nice pen!
Thankyou :D
i spent like 20 minutes making that though :P

InfestedDemon
November 13th, 2005, 06:45 AM
HEY OCELOT! I'm NOT NOOBISH! anyways, I have an idea....Why not have a contest? Like use one of the .fla's featured here and make the best drawing? That way you can see which 1 works better. Just an IDEA.

NiñoScript
November 13th, 2005, 08:09 AM
bad idea... becouse, a good artist can use the worst tool and make art :S

InfestedDemon
November 13th, 2005, 08:25 AM
:link: : I think its a good idea 'cause here in hyrule theres nothing to do.
:angel: : Its rubbish because people have different art skills
:nerd: : Does not compute! ha ha ha!
:rambo: : Rubbish Idea ryan shah
:liar: : Good idea.
:mario: : It's a rubbish idea!
:jail: (Ryan): I Get the point.
:cop: : Ello Ello Ello What do we have ere than? A rubbish idea?
:jail: (Ryan): So the end thing is no Nino?

Sinister Shadow
November 13th, 2005, 08:34 AM
:h:

ocelot
November 13th, 2005, 08:55 AM
Quite Ryan.

Can anyone tell me how to make the pencil mouse controlled?, I want when you move the mouse, the pencil moves, and when you press and hold the left click button you draw.. Also, How can I make an Ink meter (Where the more you draw, the more it goes down, until you have to refill)

InfestedDemon
November 13th, 2005, 09:18 AM
Quite Ryan.

Can anyone tell me how to make the pencil mouse controlled?, I want when you move the mouse, the pencil moves, and when you press and hold the left click button you draw.. Also, How can I make an Ink meter (Where the more you draw, the more it goes down, until you have to refill)
OCELOT (Bro) You could just ask me. (a) just make the pencil a cursor and (b) change the spacebar command in the ActionScript to MouseClick and (c) I don't have a clue.

ocelot
November 13th, 2005, 12:05 PM
Changed the line and speed

blazes
November 13th, 2005, 03:36 PM
Okay. First you need to make it so that if you move it without drawing it DOESN'T create a line. mabey add that as a nice feature. I know how it feels when your bro is right, but I think he is when he say to make it on mouse down, and to make it a cursor. but then use the space bar to to the whole point to point strait line. also an eraser feature. FOR THE METER: Make a varible called "ink". make a bar and put this code on it


onClipEvent (load) { ink = 100;}onClipEvent (enterFrame) { this._width = _root.ink; if (_root.ink>100) { _root.ink = 100; } if (_root.ink<0) { _root.ink= 0; trace("NEED MORE INK!"); } if (this._width<_root.ink) { this._xscale = _root.ink; } if (this._width>_root.ink) { this._xscale = _root.ink; }}