Script help.

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

Script help.

Postby InsertNameHere » Wed Sep 03, 2014 1:20 am

Hello... well my problem happens when i type in a script into the scripting menu ex; { scene.my.shift } and when i press Enter/Return the script acts like i pressed undo and it doesnt get entered into the menu for some reason... i need some help cause it is really getting on my nerves!!! :x
Epic
User avatar
InsertNameHere
 
Posts: 60
Joined: Tue May 27, 2014 11:31 pm
Location: Claremore Oklahoma

Re: Script help.

Postby electronicboy » Wed Sep 03, 2014 1:48 am

Which box are you trying to put your script into?
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: Script help.

Postby InsertNameHere » Wed Sep 03, 2014 2:11 am

A circle's oncollide script box
Epic
User avatar
InsertNameHere
 
Posts: 60
Joined: Tue May 27, 2014 11:31 pm
Location: Claremore Oklahoma

Re: Script help.

Postby faytree » Wed Sep 03, 2014 4:39 am

an oncollide script box is almost impossible to change it using a script menu
waiting for semester break to come...
User avatar
faytree
 
Posts: 947
Joined: Mon Nov 05, 2012 1:37 pm
Location: Selangor, Malaysia

Re: Script help.

Postby InsertNameHere » Wed Sep 03, 2014 5:42 am

Oh okay ill just use an on lazer hit script to change
Epic
User avatar
InsertNameHere
 
Posts: 60
Joined: Tue May 27, 2014 11:31 pm
Location: Claremore Oklahoma

Re: Script help.

Postby Kilinich » Wed Sep 03, 2014 8:04 am

faytree wrote:an oncollide script box is almost impossible to change it using a script menu

:wtf: no problem with that
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Script help.

Postby Kilinich » Wed Sep 03, 2014 8:12 am

InsertNameHere wrote:Hello... well my problem happens when i type in a script into the scripting menu ex; { scene.my.shift } and when i press Enter/Return the script acts like i pressed undo and it doesnt get entered into the menu for some reason... i need some help cause it is really getting on my nerves!!! :x


What exactly you trying to enter?
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Script help.

Postby electronicboy » Wed Sep 03, 2014 4:13 pm

Hint, pop open the console using F10, and review any error messages.

If you're adding code into the onEvent sections, only add code between the two { }, otherwise Algodoo won't see the code as being valid, and will wipe the contents.

Algodoo is "smart" and undoes any invalid code edits in order to keep everything running as it was.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: Script help.

Postby InsertNameHere » Wed Sep 03, 2014 11:31 pm

oh okay i will remember to do that
Epic
User avatar
InsertNameHere
 
Posts: 60
Joined: Tue May 27, 2014 11:31 pm
Location: Claremore Oklahoma

Re: Script help.

Postby faytree » Thu Sep 04, 2014 1:18 pm

Kilinich wrote:
faytree wrote:an oncollide script box is almost impossible to change it using a script menu

:wtf: no problem with that

Uuh,no i mean that it's impossible to do this:
Code: Select all
onCollide={scene.my.<VariableName>}
waiting for semester break to come...
User avatar
faytree
 
Posts: 947
Joined: Mon Nov 05, 2012 1:37 pm
Location: Selangor, Malaysia

Re: Script help.

Postby Kilinich » Fri Sep 05, 2014 9:58 am

faytree wrote:Uuh,no i mean that it's impossible to do this:
Code: Select all
onCollide={scene.my.<VariableName>}

actually, you could, but need to use (e) => {scenw.my.var} construction...
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 6 guests

cron