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

Topics - TDBFW1

#1
I don't know if I'm missing something, but is there an easy way to remove all inventory items at once, without checking for it first?
#2
I'm doing this in a new game in a default game for testing:

Code: ags

function room_AfterFadeIn()
{
gTest.Visible=true;
mouse.Mode=eModePointer;
}


In the Globalscript:

Code: ags

   if (keycode == eKeyN) gTest.Visible = !gTest.Visible;


However, the GUI doesn't close when I push "N". BTW, the GUI visibility is on pause game when shown. Any help?
#3
I have a GUI which pauses the game when shown. For some reason, the mouse doesn't show when hovering over the GUI. Any help?
#4
I'm trying to open a GUI with the "n" button. Once the GUI is open, I want to be able to close the GUI with the "n" button again. However, if I try to do something like this:
Code: ags

if ((IsKeyPressed(eKeyN)) &&
(!GUIOpen))
{
gNotebook.Visible=true;
GUIOpen=true;
}
else if (GUIOpen)
{
gNotebook.Visible=false;
GUIOpen=false;
}
}


it doesn't work. How do I fix this and where do I put the code?
#5
I get this error every time I try to start my game and I don't know why.
Unexpected error: Access to the path 'C:\Users\finnt\OneDrive\Documenten\Own Games\Les Saboteurs\_Debug\Les Saboteurs.exe' is denied.
I've tried accessing the _Debug file but it says I need administrator access.
Please help!

#6
I I have a variable that equals 3, such as a counter.
I have another variable called failure, which if it reaches 3 will end the game.
For every point in the counter, the failure variable should increase by 1. Is there a simple way to do this, other than say;
Code: ags

if (counter == 1)
{
failure += 1;
}
if (counter == 2)
{
failure += 1;
}

etc.

#7
Is there a way to let the game continue running but have a GUI open throughout?
SMF spam blocked by CleanTalk