View Single Post
geek in training
Junior Member
geek in training's Avatar
Status: Offline
Posts: 6
Join Date: Jul 2011
Default 08-01-2011, 01:31 PM

Originally Posted by antmj2317 View Post
Ok, so the question is how to use events

Step 1: add an object to the world, any object, you can even use the camera if you want

Step 2: in that object's procedures, add a keyeventlistener method to your code

Step 3: drag an if block inside the key listener and select 'true'

Step 4: select the arrow next to 'true' and select 'keyevent e =' then proceed to select whatever key you wish to bind to whatever action

This is in the alice 64 build, I also noticed you cannot direct OTHER objects by adding a keylistening to the scene, in other words, the listening must be added to the object itself, as it would be a class level listener.
you can also use "e is key (choose a key)" instead of keyevent e=

thanks so much! I started a thread myself trying to figure out how to do that. no one knows how.

Last edited by geek in training; 10-02-2011 at 02:30 PM. Reason: used the word "forum" instead of "thread"
Reply With Quote