Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Suggestion Box (http://www.alice.org/community/forumdisplay.php?f=26)
-   -   More key commands/save (http://www.alice.org/community/showthread.php?t=4375)

Watsamax1 05-07-2010 06:55 PM

More key commands/save
 
Id like more key commands like Control,tab, shift, and alt commands would be nice maybe even let w,s,a,d keys control. instead of individual keys.

It would also be nice to be able to save during gameplay and quit the game and restart from where you left off.

Dameria 05-07-2010 06:59 PM

I agree completely.

meeatpizza 04-20-2011 10:03 PM

Right click and scroll wheel events would also be hugely useful

arty-fishL 04-21-2011 05:29 AM

Everything said here is possible.

For the extra keys you can use the when "any key" is pressed event and get the "key code" from it, which is just the ascii number for that key. Another way is to actually alter the Alice resources source code to get extra button events. I can make key press events for almost any key.

The saving is very easily possible with jython. You can make it save text to file or you can even have the world preserved after it is stopped, so it doesnt reset to how it was before it was played.

The mouse clicking and scroll wheels should be possible with java events in jython. I havent tested this yet, but I see no reason why it shouldnt work. I have the code to grab the render frame from the play window, so a simple java event should be easily applyable to it.

jediaction 04-21-2011 08:16 AM

[QUOTE=arty-fishL;34344]Everything said here is possible.

For the extra keys you can use the when "any key" is pressed event and get the "key code" from it, which is just the ascii number for that key. Another way is to actually alter the Alice resources source code to get extra button events. I can make key press events for almost any key.

The saving is very easily possible with jython. You can make it save text to file or you can even have the world preserved after it is stopped, so it doesnt reset to how it was before it was played.

The mouse clicking and scroll wheels should be possible with java events in jython. I havent tested this yet, but I see no reason why it shouldnt work. I have the code to grab the render frame from the play window, so a simple java event should be easily applyable to it.[/QUOTE]


Can you make a tutorial for Jython?

arty-fishL 04-21-2011 08:51 AM

Yes
 
I did, but I cant remember what I done with it. I can try again if you want, but not now, I could start it on Sunday probably.

jediaction 04-21-2011 09:24 AM

k


All times are GMT -5. The time now is 05:55 AM.

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