Skip to main content
Aram Kocharyan's user avatar
Aram Kocharyan's user avatar
Aram Kocharyan's user avatar
Aram Kocharyan
  • Member for 12 years, 10 months
  • Last seen more than 4 years ago
awarded
awarded
awarded
awarded
awarded
awarded
awarded
comment
How do I generate coins in a pattern?
Thanks! I've gone with that kind of option. I put several "bitmaps" into a PNG and for now when alpha != 0 I know there's a coin there. I then load different sections of the PNG like a sprite sheet, but I had to write my own code to handle that.
accepted
comment
How do I generate coins in a pattern?
How would I go about storing something like this in a csv file, and would this be faster than loading a texture from a png?
asked
Loading…
comment
How can I achieve a good fire effect with alpha blending and particles?
Just to note, I noticed that with this method the best way to fade out the fire was to make it reduce to zero size, since decreasing alpha causes it to fade into white.
comment
Tweening Colors in OpenGL
Thankfully that's out of my hands with cocos2d. The draw is called as an opengl draw function and all drawing must reside there only. Anything like moving objects etc are all in the update method, which gets passed the dt.
comment
Tweening Colors in OpenGL
I figured I only need two "GradientFill" sprites and I can load the nextState texture and fade into the current state, then unload the old state and load the next etc.
accepted
comment
Tweening Colors in OpenGL
Thanks David, I was thinking along the same line, but I'm still unsure how to easily set colours. The gradient I have defined above is split into sections, but I could conceivably split them into less or more, meaning I would complicate going from 4 colours to 3 colours etc.
comment
Tweening Colors in OpenGL
Yes, I was thinking about how to transition colours smoothly, rather than change instantly.
awarded
comment
Tweening Colors in OpenGL
Yep, that's right. It's cocos2d. Looking more at this makes me want to go with option 1...
asked
Loading…