Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
Can a program close the Alice window?
Old
robit
Junior Member
 
Status: Offline
Posts: 2
Join Date: Sep 2013
Question Can a program close the Alice window? - 09-22-2013, 12:44 PM

Hi,

We are new to Alice and just love it. We have written our first little game and were wondering if we can put some code into our game that automatically closes the Alice window after the hero succeeded in her quest?

Thx alot
   
Reply With Quote
Old
drellem
Member
 
drellem's Avatar
 
Status: Offline
Posts: 35
Join Date: Jun 2012
Default 09-22-2013, 04:45 PM

If you have scripting enabled, you can do it with Jython. For more information on Jython scripting, you can go to http://www.westga.edu/~drocco/alice/...ng_basics.html. If you need, I can show you how to close the window once you've enabled scripting.
   
Reply With Quote
Old
robit
Junior Member
 
Status: Offline
Posts: 2
Join Date: Sep 2013
Default 09-23-2013, 12:30 PM

Thanks, that looks fantastic. However, we are using Alice3 and can't find were to enable scripting... Is scripting supported in Alice3? Also, what method do we need to call or how do we access 'this' from the scrip? Any documentation?

Thanks!!

PS: As lovely Alice is, it's practically impossible to google for anything ...
   
Reply With Quote
Old
drellem
Member
 
drellem's Avatar
 
Status: Offline
Posts: 35
Join Date: Jun 2012
Default 09-23-2013, 04:31 PM

I'm not sure if you can enable scripting on Alice 3. Sorry, but I don't know that much about what you can do with Alice 3.
   
Reply With Quote
Old
ADITYA1243
Guest
 
Status:
Posts: n/a
Default 05-27-2014, 12:30 AM

If you can put any code or password then your program will be automatically close. I like alice and I often using .
   
Reply With Quote
Old
macofi
Junior Member
 
Status: Offline
Posts: 2
Join Date: Jul 2014
Location: Italy
Default 07-08-2014, 08:52 AM

hi all, I'm a new user.
Unfortunately I have the same sort of problem as robit.
and still not able to solve ...

news about it?
   
Reply With Quote
Solution
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 409
Join Date: Oct 2013
Location: Northern Virginia
Default Solution - 08-12-2014, 04:17 PM

An alternate solution is to have it go into an game over screen,
I normally do this by making a square, pointing it at the camera, making it cover the screen (add a texture, normal pics work fine) then putting some text in front of the camera, after that just place a dummy object at the camera.

Then just move the camera to the dummy, set the text/squares vehicle to camera and your good.


Stuff + Other Stuff + Different Other Stuff = Things :)

My best Alice game:

Clash of the Cubes (an arena fighting game):
http://www.alice.org/community/showthread.php?t=10738&highlight=game
   
Reply With Quote
Lython?
Old
RavenOfCode
Senior Member
 
RavenOfCode's Avatar
 
Status: Offline
Posts: 409
Join Date: Oct 2013
Location: Northern Virginia
Default Lython? - 09-17-2014, 05:19 PM

You mean jython? Thats what you get when u enable scripting.


Stuff + Other Stuff + Different Other Stuff = Things :)

My best Alice game:

Clash of the Cubes (an arena fighting game):
http://www.alice.org/community/showthread.php?t=10738&highlight=game
   
Reply With Quote
Also
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default Also - 09-18-2014, 08:47 AM

Quote:
Originally Posted by RavenOfCode View Post
You mean jython? Thats what you get when u enable scripting.
If computer is properly set up with a JDK, it also allows the use of Java scripts due to recent bug fixes in Alice 2.4.2.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.