Menu

Show posts

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.

Show posts Menu

Messages - shaungaryevans

#21
I only want one key disabled in a room, not all of them
#22
hi,

how to disable key presses in a room please?

Thanks in advance
#23
It works perfectly now, that whats counts
#24
Can sombodt work this out:

code:

if(rroom.Visible == true) {if(keycode == 'N') {int vrroom_no = rroom_no.NormalGraphic; vrroom_no.NormalGraphic = rroom_no.MouseOverGraphic; Wait(20); vrroom_no.NormalGraphic = vrroom_no; Wait(5);

error in code:
GlobalScript.asc(188): Error (line 188): '.NormalGraphic' is not a public member of 'int'. Are you sure you spelt it correctly (remember, capital letters are important)?

it will be something simple i hope, i'm just tried sorry.

thanks
#25
Thank you very much. I went back of using the code on here, so much easier and quicker, thank you for helping me  :) :) :) :) :) :)
#26
I will post it when i have done this bit
#27
Another question now,

I have worked out the mouse over another way but thanks for your help.

When I put the 'wait' function in, when it doing it the buttons go semi-transparent. Why does this happen and how can i sort it out please?
#28
Quote from: GuyAwesome on Sun 07/06/2009 23:21:55
int oldGraphic = bTest.NormalGraphic; // save current graphic

is 'int oldgraphic' a built in function already or do you have to put it in by yourself?
#29
Hi,

I have got some buttons whit move over graphics on, so that will work when I put my mouse over it. Now I want, when I press a key on the keyboard, I want the button change for a second and then carry on with the game.

I have tried this,

if(keycode == 'J'){Button[12].MouseOverGraphic();}

but this doesn't work.

Any ideas?
#30
It works now. I was doing it the wrong way round.

Thank you guys (and girls) for all your help.
#31
Want does this mean please...

Error running function 'doyouwant_1_OnClick':
Runtime erroe: wrong number of paeameters to exported function 'doyouwant_1_OnClick' (expected 1, supplied 2)
#32
Beginners' Technical Questions / Re: Scripts
Sun 31/05/2009 22:09:26
I have tried the new script out and I did it like this,

I put

function doyouwant_1_OnClick(GUI *theGui, MouseButton button){}

in the global script, then I imported this function into the .ash file  of my scrpit. then I put it in my main script (.asc) and then put what a want it to do when i click on it.

Am i doing it right? 
#33
Beginners' Technical Questions / Re: Scripts
Sun 31/05/2009 19:42:21
it alright, i done it now, thanks
#34
Beginners' Technical Questions / Re: Scripts
Sun 31/05/2009 18:08:33
Can you import the function on_key_code with the int keycode
#35
Beginners' Technical Questions / Re: Scripts
Sun 31/05/2009 17:46:03
Quote from: KhrisMUC on Sun 31/05/2009 17:38:45
In there, put the custom function, e.g.

Code: ags
function my_loadbutton_click() {
  ...
}


Is this in the global script or the scrpit i made?
#36
Beginners' Technical Questions / Re: Scripts
Sun 31/05/2009 15:42:00
How do you link a GUI button to your own script?
#37
Hi,

My game at the moment in samll so all the coding is on the rooms and the global scrpits. The gobal scprit is filling up but I want to build a large game but the gobal scrpit will get too full and it will be very hard finding what I want. I know you can make more scripts but if you made a scipt called 'Misson 2'. how would you go about linking a GUI (which is for 'Mission 2') to the 'Mission 2' script please?

Do you have the link the GUI to the 'Mission 2' script through the global script?

Thank you in advance

#38
Quote from: Mr Matti on Wed 27/05/2009 17:51:21
Set the timer to 200 when the displayed text appears and make it disappear when the timer is expired.

how to make it disappear?
#39


I want the Display text to go off  5  seconds after  the text is displayed .
#40
What I meant was, how to set the timer so after a period of time the display text will go off?
SMF spam blocked by CleanTalk