mrmlabs's Forum Posts

  • I am noticing similar problems.

  • It would be nice to know if when timescale si set to 0, is there any way to have specific animations still play?

  • Yes, that si true. I was referring mainly to having them player1/running.mp3 and player2/running.mp3.

    It was me just being lazy renaming about 50 sound files :) It would be nice to be able to take advantage of the folder structure. But i guess its not something that you need that much and only in very specific cases.

  • I know, i just wanted to have the sounds named the same for both players, and then just have one instance of the play sound action based on the selected player. It would of been easier and cleaner from an event sheet point of view. Especially when dealing with a lot of sounds.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • wow, thats a real shame. Thank you so much for the answer

  • In the sounds folder i have the following structure:

    Sounds/player_1/[all the sound files]

    Sounds/player_2/[all the sound files]

    When the user selects the character they want to play with i set a global variable to either 1 or 2

    How do i then in my event sheet play the sounds for that specific selection.

    For example:

    at game over, if the character selected is player_1...i want to play the sounds located at Sounds/player_1/gameover.wav

    Any help would be greatly appreciated.

    I dont get the roles of folders in there if all the sounds appear in one big dropdown when adding a play audio action.

    Thank you.

    Tagged:

  • Any help here? As i dont understand the role of folders if when you select the sound to play is all in one big dropdown when adding this as an action.

  • Making both object in the family global did not do anything :(

  • Will it work if i make them global? Is there a better way?

  • I think i know why i might not see that UID. Because the player selection happens in a different layout.

    Any idea how do i go around this?

  • Thank you for this Nicolas....but it seems when i am trying to get the UID from that object is returning 0.

    Do you know why is that happening?

  • mrmlabs

    First, to clarify about Families : all objects in Families inherit instances variables, ex, 2 objects in fades family, and 2 instances variables (named so, Family instance variables) :

    So if select 1 fade item, it have it's own instance based on family (that's [fades] mean)

    > So the question is, how do i get player_1 or player_2 to appear based on that global variable.

    >

    > Hope it makes sense.

    Yep! My better idea : your global var store the player.UID, and so you can Pick family instance by player.UID (your var)

    Great idea. But how do i do that selection? What actions do i need to put in the event sheet?

  • In the sounds folder i have the following structure:

    Sounds/player_1/[all the sound files]

    Sounds/player_2/[all the sound files]

    When the user selects the character they want to play with i set a global variable to either 1 or 2

    How do i then in my event sheet play the sounds for that specific selection.

    For example:

    at game over, if the character selected is player_1...i want to play the sounds located at Sounds/player_1/gameover.wav

    Any help would be greatly appreciated.

    Thank you.

    Tagged:

  • Im just going to jump in here as its related:

    So at the moment i have a family object called "player" in wich i have 2 sprite objects "player_1" and "player_2"

    "player_1" inside the family has an instance variable - selected_player = 1

    "player_2" inside the family has an instance variable - selected_player = 2

    The family itself doesnt have an instance variable set - as i dont know if the individual object from the family needs to have the instace varibale or the family itself.

    I also have a global variable called selected_player = 0

    When you select player1 from the character selection layout i set that variable to 1 or 2 based on the selection.

    At the start of the game layout i create the player object and place it at specific coordinates.

    So the question is, how do i get player_1 or player_2 to appear based on that global variable.

    Hope it makes sense.

    At the moment they show up randomly.

    Thank you so much!

  • You can use "Create object named…" and then call System > Pick last created object from Family

    Excerpt from my project to create background "on the fly“ :

    Sorry Nikolas , you were probably answering Lucky's question.

    So sorry again for jumping on this question as i thought its very similar to my problem.