Game Development Community

Main Menu and weapons.

by Ian Roach · in Torque Game Engine · 07/14/2002 (6:38 pm) · 3 replies

Hi guys.

Just a couple of questions. In the defualt mainmenu the buttons have a buttonover sound event.

Now ive deleted these buttons and subsequently built my own using bitmaps. questions is how do i re-enable that buttonover sound ? Wheres it defined ?

Another problem im having is im using mouseovers to get a different image when you hover over the button. no problem there but i want to enable another mouseover image (a seperate one not on the button (like text))

How can i do multiple mouseovers ?

----- Weapons ------------

Recently ive been trying to add in my own weapon. I copied the crossbow.cs and pointed it to my new weapon shape. Then inside that script i renamed all instances of crossbow with my own weapon name .

But i dont get anything showing up in the editor under weapon listings and ive activated the script in game.cs

Also i want to create realistic weapons (such as a gun) ive seen a tutorial on getting shotguns into the game e.t.c but its very vague. How do i go about modifying an existing script to act like a shotgun or normal gun ?

#1
07/15/2002 (1:56 am)
See if this helps your bitmap button problems:

GuiBitmapButtonCtrl

What do you mean by multiple mouseovers?

-Tim aka Spock
#2
07/15/2002 (2:42 am)
By multile mouseovers i mean 2 images appear when your mouse is over instead of 1.

Any one got a link for putting a basic gun into the game ?
#3
07/15/2002 (3:19 am)
With the weapon not showing up etc... try going thought all the scripts looking for crossbow and change them to *weapon name*. Then it should show up.

How do you mean realistic? like recoil? If you find a good way of doing recoil please tell me.

If you want reloading etc... look in the Code snipits. lots of great stuff in there :-D.