Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Custom Menu  (Read 2265 times)

0 Members and 1 Guest are viewing this topic.

3D_Maniac

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
    • View Profile
Custom Menu
« on: February 15, 2007, 09:20:19 AM »

Hi fellow adventure game enthusists

Firstly this game engine is cool but I need some help.

I want to have a scene as my main menu (not a window object) and when the mouse is moved over a region in the scene it will change the scenes background image similiar to a hover action on a button.

Any help would be appreciated :)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Custom Menu
« Reply #1 on: February 15, 2007, 10:52:41 AM »

Your "regions" would be entities you'd place in SceneEdit. Now to implement the mouse-over effects, you'd attach a script to the entity and the script would contain something like:

Code: [Select]
on "MouseEntry"
{
  this.SetSprite("path\some_active_sprite_or_image.sprite");
}

on "MouseLeave"
{
  this.SetSprite("path\some_inactive_sprite_or_image.sprite");
}

Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

3D_Maniac

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
    • View Profile
Re: Custom Menu
« Reply #2 on: February 15, 2007, 11:27:55 AM »

Thanks Mnemonic

Your help is greatly appreciated. I finally got it to work :)

By the way is there a place to upload game demos that we have been working on.
Logged
 

Page created in 0.024 seconds with 18 queries.