name 'Mouse' not defined

For questions about using Classic.

Post » Sat Sep 11, 2010 11:06 pm

I started a new app using the 'RTS' template, and added a script in the Event Editor.

Now regardless of the contents of the script, I get a Python error on startup about "name 'Mouse' not defined".

The script at this point is actually just "print 'hi'"
B
1
G
2
Posts: 8
Reputation: 641

Post » Sat Sep 11, 2010 11:07 pm

Sorry I can't seem to figure out how to attach the CAP file
B
1
G
2
Posts: 8
Reputation: 641

Post » Sat Sep 11, 2010 11:30 pm

You need to rename some object and behavior names. Names with symbols or spaces will cause errors when using python.
Rename "Mouse&Keyboard" to "MouseKeyboard" and rename the "Selection Box" behavior to "SelectionBox" in the objects SelectionBox and Gradient.

-cheers
B
92
S
32
G
106
Posts: 5,272
Reputation: 69,455

Post » Sat Sep 11, 2010 11:40 pm

Thanks, that did it!
B
1
G
2
Posts: 8
Reputation: 641


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest