Quote:
|
Originally Posted by gabe
That's a great workaround to a problem that has come up a few times in the past. As far as I know (as you said), you cannot create/disable events dynamically, so this solution is pretty cool. Especially the puff of smoke bit...magic makes everything better. 
|
Yeah, you can't disable the
USE ARROW KEYS TO CONTROL event. All newbies go right to that event and start dreaming about making their next game. I tell my students that in general, that particular event is useless in real games. There's no way to actually modify the "guts" of that event. You have to take it or leave it.
If you look at the flight simulator demo that comes with Alice, that has some good ideas on controlling motion. Then you could use a function to help you neutralize an specific key event.
Lets say I make a function called crashIntoACone which returns true or false (or 1 or 0), then in the key I've programmed to move forward, i would do:
if (crashIntoACone = false)
car move forward
Just an idea...