Button Help

Talk about making games.

Button Help

Postby Hedfone » Tue Aug 15, 2006 9:57 pm

My game menu uses buttons to select the desired option (eg: Help, Play, Credits etc etc,) but i can't get the button option to work. I've followed this tutorial [url]http://www.trajectorylabs.com/Multiple_Rooms_Levels_Game_Editor_Tutorial.html[url] to a TEE but it still won't work for me! can someone help me out here?
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby makslane » Wed Aug 16, 2006 6:30 pm

What's happen?
Are you get the button clicked?
Are you useing Mouse Button Down event?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Hedfone » Wed Aug 16, 2006 9:28 pm

i have done every thing EXACTLY as is written on the URL i posted. the only possible things i can possibly concieve could b wrong are:

a) I'm using the view follow the Player using the 'CenterView' actor technique

b) I've changed the cursor used in game

other than these things i cant think of anything else that would screw it up
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Game A Gogo » Wed Aug 16, 2006 11:43 pm

are you using the LoadGame("yourgame") technoque?
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Hedfone » Thu Aug 17, 2006 2:20 am

nope, but i tried deleting the cursor and just using the mouse and that seems to have worked. thanks to evryone who replied though :)
User avatar
Hedfone
 
Posts: 174
Joined: Mon Jul 31, 2006 9:47 pm
Score: 2 Give a positive score

Postby Game A Gogo » Thu Aug 17, 2006 11:09 pm

i know why, its because the fake mouse overlaps the click sensor.so, alway the middle of the actor is the Hot spot if you only use a cover actor that replace the mouse. just make sure that the midle pixel or the "Hot spot" is transparent! amd it should work.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Nitroshock » Sat Aug 19, 2006 6:34 am

When you change the cursor in your game, you can set the 'x' and 'y' hotspot on that cursor. Just figure out where the "point" on your image is at (x, y) and set it as the hotspot when you change the cursor. Seems to work for me anyway.

-Nitro
User avatar
Nitroshock
 
Posts: 8
Joined: Wed Jul 26, 2006 9:53 pm
Location: My own private Idaho
Score: 0 Give a positive score

Postby DilloDude » Sat Aug 19, 2006 7:58 am

If you have an actor taking the place of a cursor, use event disable to disable mousebuttondown events and you will be able to click the actors below.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest