Awesome-Game-Team / Awesome-Game

An Awesome Game
GNU General Public License v3.0
8 stars 9 forks source link

Adding items or augmentations to the player.png #8

Open jimfrize opened 8 years ago

jimfrize commented 8 years ago

So I wanted to make a version of the chickpea guy with the jetpack on, or something similar - I thought I might try out a propeller on his head?

The only problem is the format of the image 64x64px is pretty small, do you think I could make the image taller for adding the prop? Or should we do something else, like making the player glow or flash when he has a special item? - that way we could keep him 64x64

jimfrize commented 8 years ago

BTW, the player was inspired by @metalx1000 's original bubble head guy & watching my 10 month old son eating a chickpea curry ;)

OneSleepyDev commented 8 years ago

@jimfrize You could add a second sprite with the propeller hat and have it follow the player character on it's head. :-)

jimfrize commented 8 years ago

@OneSleepyDev I'd be willing to give that a go, I might need some guidance on the best way to go about it. Also it is worth noting that the chickpea guy's head bobs up and down, I don't know if that makes it more complicated?

OneSleepyDev commented 8 years ago

@jimfrize Not sure, but I wouldn't think so.

@metalx1000 Ideas?

metalx1000 commented 8 years ago

You can parent objects to one and another. The bobbing of the head might be an issue. It's something we can look into. Maybe make it an item that gives the play some sort of power.

OneSleepyDev commented 8 years ago

@metalx1000 @jimfrize

Hmm... We could set some animation frames lower than others to compensate for the bob.

jimfrize commented 8 years ago

Is there a way we can manipulate the hue or brightness of the player and just make him flash or pulsate, like when Super Mario gets a star power up?

metalx1000 commented 8 years ago

@jimfrize I know you can do a lot of image manipulation (colors, hues, etc) if you are using bitmaps. Bitmaps are going to be larger, but our images are pretty small. I think there are extra steps to make the backgrounds of them transparent.

So there are pros and cons. I like using pngs for most things. We can always have a separate sprite image for color changes. But if we do it a lot, then Bitmap might be a better option.

I'm pretty sure you can adjust the transparency level of any image to fade it in and out.

metalx1000 commented 8 years ago

@jimfrize HUE change I think you need bitmap, but look like you can color tint PNGs. http://phaser.io/examples/v2/display/tint-sprite

jimfrize commented 8 years ago

@metalx1000 I'm still looking into this, I think I should be able to group a sprite with the character. Also, I've been trying to tag my issues (enhancement/bug etc) and I've been googling to find the answer, but I can't work it out. How do I tag my issues? Or is that something you have to do?

metalx1000 commented 8 years ago

I guess only I can label stuff. Didn't realize that. I'll try and label things as they come in.

jimfrize commented 8 years ago

@metalx1000 Thanks :)