Colorable, Draggable Objects - Needs Improvement (AS2:CS5)


fishtankcap.jpg

 

i've made simple little flash game (pictured above - couldn't see way attach .fla). basic idea have 3 little sea creatures, fish bowl, , color buttons. can click on color button , click on creature, , colors creature color. can drag creature 1 of 3 invisible (but intuitively placed) targets in fish bowl. this, did following:
color buckets:
make each 1 button following code:

code:
on (release) {      _root.fillcolor = 0x"your hex code here"      _root.brush.gotoandstop(1); }

colorable creatures:

 

make each 1 movie clip (button work, not way made them drag) following code:

 

code:
on (press) {      color = new color(this);      color.setrgb(_root.fillcolor);      delete color; }

dragging:

 

i used dragndrop component flashvalley (

http://www.flashvalley.com/fv_components/dragndrop/). drag drag component onto each creature, drag target component onto each target (must movie clip), , drag setup component somewhere out of sight. take of these things , make them movie clip, export actionscript class set dragndrop, , voila. have draggable objects snap target.

 

 

some problems / room improvement:
1) can't figure out how give creatures un-colorable border.
2) can't figure out way turn off coloring once want pick creatures.

 

#2 biggest issue, kids have big bank of fish, color them based on (math problems, phonics puzzles, etc), drop them tank without re-coloring them. @ moment, kid have remember click on right color before moving, or move them when color them, neither of optimal.

 

any ideas?

1)  make fish'es fill movieclip , use color.

 

2)  assign fish'es color original color or make fill not visible.



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support