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

danpost's Comments

Back to danpost's profile

danpostdanpost

2013/9/21

Make sure you include the source code or it will not be able to compete. Also, I would like to see how you used my XActor and XWorld classes.
@GreenHouse, if you are trying to get the image of a user on the site, use the following: [code]GreenfootImage userImage; if (UserInfo.isStorageAvailable()) { UserInfo ui = UserInfo.getUserInfo(): if (ui != null) userImage = ui.getUserImage(); } if (userImage == null) { // create a dummy image here }[/code]
Using the dragging also puts a definite limit on when a connection is being attempted (what I mean is that there will be a point in time when the attempt is started -- when dragging is detected, and a point in time when the attempt is completed -- when dragEnded). Another plus is you do not have to store the first node clicked on in a field in the world when using the dragging method.
I am not quite sure exactly what I did. I possibly had clicked on the same node twice. I think the main problem stems from the fact that you are using the mouse click function on the nodes to perform two different actions (changing its state and selecting it for possible connection). If you allowed dragging for creating the connections, it could also be used to easily change the node either end of the connector is hooked to (or to remove the connection altogether by not re-connecting to a node); and it would not interfere with the changing of the state of the nodes using mouse clicks.
Once I started using cables, it began stopping on me (must be a NullPointerException or something causing this).
I believe it is called world-wrapping (you go off one edge and come back in on the opposite edge).
danpostdanpost

2013/9/11

I believe that ksksks was not logged in and got an ExceptionInitializerError. Looking at the details, I think it may have to do with UserInfo storage connecting.
@ksksks, I started a discussion called "On 'The Maze Factory' by danpost" to show the Timer class code. It is located at: http://www.greenfoot.org/topics/4431
Is that also my Bar class you are using?