Register  |  FAQ  |  Search  |  Memberlist  |  Usergroups  |  Log in 
Reply to topic
 Rollover text 
nigec


Joined: 04 Jul 2007
Posts: 212
Reply with quote
How easy would it be to have rollover text appear using the game scripts?
Tipical senario would be if you rolled over a switch that was usable it would display the name "switch" while on the over event

Also how do i stop sound.. my video texture now switches on if you click the screen and turn off if you click it again but the sound keeps playing.. the script i did is:

Code:
NoStopSound(true)
text_msg.setText('turned the weird woman off')
PlayAnimate('hide_msg')
hotspot_tv1.hide(true)
hotspot_tv.hide(false)


I tried NoStopSound(true) as false and it still plays

thanks
View user's profile Send private message
  
Vincent


Joined: 25 Dec 2006
Posts: 296
Reply with quote
It's not difficult, you just need detect whether cursor over a switch and draw text in Render2D function of User Script File.
About sound, use PlaySound() to stop Wav sound, and use StopMusic to stop Music. The sound of video file is a Music, only the sound loaded from .wav file will be refered to Wav type.
View user's profile Send private message
  
nigec


Joined: 04 Jul 2007
Posts: 212
Reply with quote
Thanks for that, I'll give it a try..
I'm going to try and do the tutorial over the next few days starting with using the camera widget in TS, creating the DDS shader and using 3D objects and the Video textures, I've built a Sci Fi scene loosely based on The Enterprise's corridors Smile I just need to add buttons and animation place holders
View user's profile Send private message
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic