Hi all,
I am currently trying to create a bejeweled style game and I’m stuck trying to figure out how to swap the location of the two objects. I wanted to be able to move the object more than one location over, so I was having a difficult time trying to figure out how to have each ‘gem’ get swapped as i move one gem from one location to another.
I was hoping to do this without physics (as that seems to cause some issues with collisions and forcing the gems to stay within a certain boundary). I do not have a lot of experience with object oriented programming, so my only idea was to transition each object to the others’ location, but I wasn’t sure if there was a way to read both objects x and y location from the event.
Does anyone have any ideas on how to accomplish this without hard coding each location to move to?
Thank you in advance.