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

#1
I have an introduction room, that one it has loaded, it plays some music and displays the name of the game and plays the credits. The issue is I want it so that if you left-click during the title sequence, you will be able to skip it.
I have my code like this
Code: ags

function room_AfterFadeIn()
{
  
  disable_gui();
  

  aMusic1.Play(eAudioPriorityVeryHigh);
  Wait(100);
  
//line 1
  FadeIn(ShowTextCentered("(game name)"));
  
  Wait(400);
  
  FadeOut(ShowTextCentered("(game name)"));
  Wait(50);
}
  function on_mouse_click(MouseButton button) {
    cChar1.ChangeRoom(3,150, 160);
    
    
  }


the code as is does allow you to exit the introduction room but only once the credits and all that have played, and I would like it that you would be able to skip the credits at anytime
#3
I was wondering how I could create a function so that when an action has taken place, the character has a random chance of giving one response or giving a different response. I want this so that there is not always the same response, because I think that would make the game feel very scripted.
SMF spam blocked by CleanTalk