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

2012/4/13

Mouse/Intersect problem

matt.milan matt.milan

2012/4/13

#
http://www.greenfoot.org/scenarios/4786 if a user tries to drop a new object on an occupied square, the new object shuold be sent to it's last location. sometimes it works. it seems that if i drop the new object closer to the center of a square, it doesnt work, and the object just sits there, and doesnt snap.
matt.milan matt.milan

2012/4/13

#
edit: fixed. or it seems to be. in the Draggable class, under the mousecontrol method, i changed 2 if statements
You need to login to post a reply.