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

2019/1/19

Swapping Actors in a 2d array

M123D M123D

2019/1/19

#
Hello, I'm trying to make a game based off of candy crush but I can't seem to get the swapping of the actors right. In my code, all the different coloured candies extend a Candy class and they are placed in MyWorld according to how many pixels apart they are. Can someone help me?
danpost danpost

2019/1/19

#
M123D wrote...
I'm trying to make a game based off of candy crush but I can't seem to get the swapping of the actors right. In my code, all the different coloured candies extend a Candy class and they are placed in MyWorld according to how many pixels apart they are.
Please show Candy class code and MyWorld class code.
You need to login to post a reply.