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

Report as inappropriate.

FlyingRabidUnicornPig
FlyingRabidUnicornPig presents ...

2013/11/23

Moving Objects with MouseTrap

I took a look at bourne's code, and changed somethings up.
First off, download, it won't work on the site.
Second, I made it that the greenfoot moves with the mouse. The very basics of stuff like moving the mouse for camera movement.
My next task, implement this into Greenfoot3D! :D
Bourne's Scenario: http://www.greenfoot.org/scenarios/10066

2215 views / 11 in the last 7 days

Tags: with-source

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Sat Nov 23 21:51:48 UTC 2013 Got rid of unimportant print statements
bournebourne

2013/11/23

Perhaps you can provide a link in the description to my scenario to make it clear what code of mine you refer to, thanks
bournebourne

2013/11/23

And I suppose the direction of the moving object should be reversed for a 3d view perspective, and you could look into removing the cursor for the mouse as well. I think Builderboy2005's Advanced Mouse Control scenario would help: http://www.greenfoot.org/scenarios/2828
thanks! I'll be working on implementing this into Greenfoot3D starting tomorrow or the next day, It'll be a great feature to have, and if I can figure out how to change permissions of the applet, I could make it work on the site as well. And your scenario will be in the description.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.