1
Mega Tokyo SCI Archive / Re:Larry 3 Bamboo Forest Blues
« on: January 07, 2003, 01:00:28 AM »
Thanks for the help!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Thanks for the help!
(instance RoomScript of Script
(properties)
(method (handleEvent pEvent)
(var str) //Local variable
(super:handleEvent(pEvent))
.
.
(switch( (send pEvent:type) )
(case evKEYBOARD
(if(== (send pEvent:message) KEY_B ) //Check if B was pressed
(send gEgo:view(1)) //switch to Brian
(send pEvent:claimed(TRUE))
)//if B
(if(== (send pEvent:message) KEY_E ) //Check if B was pressed
(send gEgo:view(0)) //switch to Ego
(send pEvent:claimed(TRUE))
)//if
)//evKEYBOARD
//For fun intercept the Mouse event as well
(case evMOUSEBUTTON
(Print("You pressed a Mouse Button!"))
)//evMOUSEBUTTON
)//switch
)//method
)//instance
=str ""
(Format(str "str=%x" (send pEvent:message)))
(Print(str))
SMF 2.0.19 |
SMF © 2021, Simple Machines
Simple Audio Video Embedder
Page created in 0.058 seconds with 21 queries.