Two questions about reducing player interaction

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

Two questions about reducing player interaction

Postby LikelyLad » Wed Apr 30, 2014 10:50 am

I've created a scene which involves my students thinking through and solving a problem involving moving around the objects in the scene. However, I want one particular object to be immovable by the player - I want them to have to move that object by only using other objects in the vicinity, not the object itself. How do I stop them just moving the object directly?

Secondly, I want to limit the zoom level - if the students zoom out far enough, again they can move things which defeat the purpose of the exercise. Is there any way to do this?

Any help much appreciated!!
LikelyLad
 
Posts: 1
Joined: Wed Apr 30, 2014 10:34 am

Re: Two questions about reducing player interaction

Postby dustville » Sat May 03, 2014 3:44 am

i dont know if you can make an object immovable
but you can make it so you cant zoom at all

how to make it so you cant zoom
take a box
open the script menu on the box
put this code in poststep

(e)=>{Scene.Camera.zoom = xxx}

replace "xxx" with your number

i can try to explain it more if you need more explaining
dustville
 
Posts: 20
Joined: Sat Apr 19, 2014 6:13 am
Location: somewere

Re: Two questions about reducing player interaction

Postby jon_joy_1999 » Sat May 03, 2014 7:44 pm

it is not completely possible to make an object immovable via player command, however you could try making a large rectangle (large enough to cover your play area), placing everything you want unmovable behind it, removing all collision layers, and making it transparent, so you have kind of a protective glass for the objects
Image
BSrac = BoincStats recent average credit
I'd rather be network computing.
jon_joy_1999
 
Posts: 233
Joined: Fri Dec 09, 2011 12:51 am


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 3 guests