Aldo18's messagesPublic messages for Aldo18
Nathan_Sproul
Aug 11, 2009 10:39am Yeah, I’ll help you with programming whenever I have answers. For your puzzle mania game, to get the snapping to work, I think I would first check the piece’s x and y position, then compare it to all the snap points, and see which it is closest too. Then, I would set its position at the snap point. It should look something like this: //… show moreYeah, I’ll help you with programming whenever I have answers. For your puzzle mania game, to get the snapping to work, I think I would first check the piece’s x and y position, then compare it to all the snap points, and see which it is closest too. Then, I would set its position at the snap point. It should look something like this: //Check your first snap point, in the top left corner using the distance formula //Then, compare the distances to find the closest one (assuming the distances have been put in an array called “distances”) //Then set the position to the closest snap point (assuming you have an array of all the x and y values of the snap points, named “x” and “y”) And that should make the pieces snap into place! show less
HoboScience
Jul 4, 2009 7:57pm I don’t know much about flash, but here’s a couple of hints… I don’t know much about flash, but here’s a couple of hints… Most importantly, take the tutorials on Kongregate. There are some for jumping, for platformers, for…well, you get the idea. That’s all I’ve got. Afterwards, you might want to check out the art collabs for Aviary tools – that should fend off the “this looks like it was done in paint” comments. (I’ve gotten them too. It hurts.) Good Luck! show less |