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 - arj0n

#2663
If tried the function repeatedly_execute() but that only works when there's no fading...
So like Khris said, I'm not sure if there a way to catch keypressing during fading.
eEventEnterRoomBeforeFadein sometimes seems to work.

So I can't find a way to catch the keypress when having a fade-out plus
the eEventEnterRoomBeforeFadein doesn't always react  ???
#2664
This still doesn't work when the fadeout starts...:
Can't find an event for when the fadeout has started already.


function on_event(EventType event, int data) {
 if (event == eEventEnterRoomBeforeFadein) {
   if ((data >= 1) && (data <= 10)) { // only set the timer for the rooms that are going to use it
     SetTimer(1, GetGameSpeed() * sldSpeed.Value);
   }
   else SetTimer(1, 0); // disable the timer for other rooms
 }

if (event == eEventEnterRoomBeforeFadein) {
if (IsKeyPressed(eKeyEscape)){
   mouse.Visible = true;
   QuitGame(1) ;
   mouse.Visible = false;
if (event == eEventLeaveRoom){
if (IsKeyPressed(eKeyEscape)){
   mouse.Visible = true;
   QuitGame(1) ;
   mouse.Visible = false;
}
}
}
}
}
#2665
In this situation, lot's of random rooms are shown.
During this being shown, I'd like to be able to check if the Esc button has been hit, also during the fading between the rooms.

"On_key_press" is used but only works when before and after the fading.
Is there another way then adding the "enter room before fade in" options of all these rooms
in order to get this esc-button check working during fading?
#2666
How can I build a check (I guess it needs to be in repeat exec.) that checks whether the
escape button is pressed or not even when fade-in or fade-out of a room is happening?

This part works but not when fading in or out of a room, only when a room is normally show:
------------------------------------------------------------------------------------------
function on_key_press(eKeyCode keycode) {
 // FUNCTION KEYS AND SYSTEM SHORTCUTS
 if (keycode == eKeyEscape) {
   // ESC
   mouse.Visible = true;
   QuitGame(1);
   mouse.Visible = false;
------------------------------------------------------------------------------------------
Thanx.
#2667
Quote from: Def on Fri 26/03/2010 19:03:35
Found one of my old entries, shared 1st place if I remember correctly. That means there were probably only two entries ;) Can't remember which year/month it was. The theme was something about worshipping kitchen appliances I think.



Def, could it have been this BB comp?
#2668
The Rumpus Room / Re: Happy Birthday Thread!
Sun 04/04/2010 09:50:04
Happy birthday monkey_05_06
#2669
You know my methods, Watson...


;)
#2670
The Rumpus Room / Re: Happy Birthday Thread!
Fri 02/04/2010 08:00:56
Happy BD Greenboy
#2671
Quote from: FSi on Thu 01/04/2010 11:59:27
NVM him, I will post a mirror.
Distorting mirror please! :P
#2672
Never knew JB was one of the Sons of Gaia...  :P
#2673
Spoiler
April fools day joke
[close]
right?  :P
#2674
Gilbet: that was the problem, thanx!
And thanx guys for your help  ;)
#2675
No zombie screenshot indeed...
#2676
The Rumpus Room / Re: I LOVE MARK LOVEGROVE
Tue 30/03/2010 15:37:22
errrr....

Did you gave her your 1st Drop or did it end up like a Living Nightmare Deluxe?
Practising 69, did you had Fun With Numbers?
Been Inside her Monkey Island, did she still had Hope you might give her the Secret of your Chunky Salsa...?
And afterwards, did she complained about This odd feeling?

;D
#2677
"The relevancy of a key term is determined by counting the number of times a given term occurs. You may notice that on occasion a term has a higher relevance than the term you entered. This is because it appears more often in Google searches related to your term than your input term does."

So yes, sort of indicator for popularity I guess....
#2678
It does send the player to one of those rooms but it doesn't randomly loop anymore.
It just shows about 3 rooms and then stops... which I do not understand.

When I don't change the game speed [and so the random speed] by using the slider, the randomising loops like it should...

Edit:
Or, when there are only 10 rooms and the player would be send to not existing room eleven, it might break the loop?
But then, I guess, AGS would give an error...
Anyway, I'll have to check that one...
#2679
Khris:

function repeatedly_execute() {
 
if (IsTimerExpired(1)) player.ChangeRoom(Random(10) + 1);
if (IsGamePaused() == 1) return;

}
#2680
@Darth: No hurry  ;)
@Def: Thanx, there was no entry of you in my collection yet, and this is a very nice one btw :D
SMF spam blocked by CleanTalk