This site requires JavaScript, please enable it in your browser!
Greenfoot back
Hiimachicken
Hiimachicken wrote ...

2013/12/15

help animating my player?

Hiimachicken Hiimachicken

2013/12/15

#
im creating a cube type game and i want the cube to change color like red,yellow,green and that could anyone help me out?
danpost danpost

2013/12/15

#
It is hard to determine how to change to color of your cube without seeing any attempted code and without any specifics of the class of the cube. Please post the cube class code (preferably with attempted color-changing).
Hiimachicken Hiimachicken

2013/12/15

#
i haven't attempted anything yet because i cant find any tutorials, that's why i was asking even if there's away to do it with different images like every millisecond the image changed to another and that other image as a different color?
danpost danpost

2013/12/15

#
All I can say at this point is that you need an Actor subclass to create cube objects with a method to change its image and an act method that calls this image changing method. The images can be created programmatically or saved in image files. , If you encounter problems after you have done that, post the code and explain the problem(s).
You need to login to post a reply.