Need help adding a colouring book to my game

Started by lilemX, Fri 13/07/2007 00:27:17

Previous topic - Next topic

lilemX

hi
i am currently working on a game, im very new to this so i dont know alot about anything really, however i am determined to finish this game. (so i wont be wasting your time)

my game is a childrens game and i hoping to have 3 aspects to the game  1 of which will be a colouring book where they can colour in thier favourite characters from the game and also some other objects, animals etc (not sure how many at the minute) but im not even sure if this is possible using AGS let alone how do do it so in short please could some one

A) tell me if in fact i can put a colouring book into my game
and B)  if so how i would go about doing this

thanx for your help
       

Ishmael

It's doable, sure, but needs some scripting.

The easiest approach I can think of now is to have only a floodfill type tool, and make every colourable area in every available colour as different sprites, then for example arrange them as objects in a room, and when clicked on change the object's sprite to the same area with the selected colour in it. A lot of management to keep track of all the sprites, but making it with RawDraw would probably be even more work.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

lilemX

#2
hopefully this will help you understand what i want
it is very rough obviosly i pinched the man from a colouring ball competition  :D



my game is aimed at 3-8 year olds so idealy what id want is for them to be able to click on the red colour and then click on what part of the character they would like to be red. so just like in paint when you use the fill tool it colours in that outlined area.

thanx ishmael  :D the only problem is i am VERY new  :-\ i dont really understand how to go about a floodfill type tool etc, is there a special program i would need to download to achieve this or is it a case of coding

sorry i will apologise now for my extreme lack of knoledge (and probable spelling mistakes) but everyone has to start somewhere i hope i dont get the responce of "if you know this little why bother" after all if it takes me 4 years to complete because of having to learn all the coding etc it will be worth it

thanx guys and girls  ;)
       

Khris

You *could* implement a fill tool, but it'd be very slow.

With only a few colors and a few areas to fill, I'd create each filled area in each color in some graphics program, import them as sprites and RawDraw them on the background.
Use hotspots for the colors and regions for the picture's parts, then make a click on a hotspot set the color and a click on a region set the area to fill, calculate the sprite slot and draw it.

It might even be possible to get many different colors by mixing red, green and blue using RawDrawImageTransparent.

Ashen

I'd reccommend using Objects or Characters for the different areas of the picture, like Ishmael. Objects should be fine, except that you'd be limited to 20 'parts' per image - the Room limit on Objects. Characters might be a little more work, as you'd have to move them between rooms and set their positions and sprites, but would allow more complicated pictures. For reference, the little man you posted is 7 parts (head, torso, trousers, left arm, right arm, left shoe, right shoe).

However, I'd suggest you use the Object/Character.Tint function, instead of importing a different sprite for each possible colour. I've tried a very basic version of this, and it seems to work OK.
I know what you're thinking ... Don't think that.

Ishmael

Ah, I had forgotten about Object.Tint. Naturally that'd be much easier to do than sprites.

And by saying floodfill I meant a tool that colours the whole are, and not a pencil/paint brush type one.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

lilemX

the only thing that is confusing me is the way your all saying about my sprites being in a room  unless when your saying room you just mean a plain background then ok  because this colouring book is only going to be one small part of my game
below is what my options will be (first design by the way)



so those three different parts of the game arnt really connected apart from the the story (mixie's adventure) if they read may help them with the game and the colouring book is just ann extra activity hope fully helping the children learn colours

(i hope I'm making sense)

so the colouring book should just be very simple just like the picture i showed in an earlier post (and dont worry of course it will be done to a higher standard and not with a pinched picture)

maybe you guys actually understand me and it is me who is the one misunderstanding sorry guys  i can be slow at times  thanx for bearing with me ;)
       

Ashen

Quote
maybe you guys actually understand me and it is me who is the one misunderstanding sorry guys
I think that's it - possibly there's some confusion because of the terms. Just becasue we've said to use a room, it doesn't have to be an actual 'room' that's a location within your game. What you describe is exactly how it'd work.

Here's my attempt - it's pretty basic but shows that it's possible. If you're interested in the code, PM me and I'll e-mail you the source.
I know what you're thinking ... Don't think that.

lilemX

thanx guys you have all been a great help much apprecited and thanx for understanding the fact im no good with techy things 

cheers  ;D
       

SMF spam blocked by CleanTalk