gamingqd's Forum Posts

  • You do not have permission to view this post

  • calminthenight Hello, thank you for your answer, I completed it. :)

  • mrcgkh Hello, yes I'm Turkish and it is nice to encounter you here. Thank you for your help, I used the project file you shared and I managed to do it. :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    I have 4 layers in one layout. When my player klicks the first option in the layout it leads him to the first layer, if he klicks the second option in the layout it leads him to the second layer and it goes on like this. But when my player is in the second layer and klicks a sprite it also affects the other sprites in the other layers. There are sprites in all layers. For example, how can I lock the other layers when my player is in the first layer so that the other sprites in the other layers are not affected? When my player klicks one sprite,( I made them as buttons) their money increases, etc. Here are the photos:

    Tagged:

  • Hi guys, I was wondering about smth; Would adding 3-5 layouts to my game slowed the game? I mean, would the game be slow while the player/user play the game?

    And, what are the things that slow a game in the users/players device?

  • Advanced Random could give you this. 0123 --> 3102

    But advanced random or other methods like Fisher Yates would not directly solve your problem. You said every 10 second a new event appear. But what will happen after 40 second. You need to re-shuffle it.

    In a situation like above, same events will appear at 70 and 80 seconds (1-1). As i explained before, even if you use advanced random the same event could happen. You need extra optimization for a problem like that.

    I also suggest my previous example

    https://drive.google.com/file/d/102s4OHmnjeMfRpmxt-jDYrLon65z-HkU/view?usp=sharing

    If you have 4 events , in every 40 seconds you may see the same events.

    If you have 100 events , in every 1000 seconds you may see the same event.

    So this is still a good approach.

    mrcgkh Thank you so much. You literally helped so much.

  • I would suggest having a column on the array to store if the question could repeat or not. This way you can control which question could repeat.

    Just store 0 and 1 on a new column, and when this question apper on screen, compare if this column is = 0 if yes, remove this question from array, if 1 just keep it for next random.

    klabundee can u show me an example of it, please?

  • Hi mekonbekon

    I've at least 100 random events in my game. They appear every 10 seconds. They are like:

    1)There is a pandemic. Will you open hospitals?

    -Yes -No

    Every yes and no answer has its own consequences. For example: If my player says Yes, his popularity will increase by 50, his money will increase by 1000 and his success will increase by 20. Money, popularity and success are my three global variables. Yet my events come randomly and sometimes the same event comes in row 3 or 4 times. I check the template you share but quite don't get it how to apply it to my game.

    Can you help me with that? I want my events to come in order and not to repeat itself. I don't know how to do it.:(

  • oosyrag,mrcgkh

    I agree, the best way is to use Advanced Random but I couldn't totally use it right.

    How am I supposed to use advanced random in my event sheet? If you share an example it would be good:)

  • Hi, klabundee and mrcgkh

    I'll ask one thing; My events should come once, I mean sometimes the same event comes three-four times in a row and I want my events to come only once in the game. How can I do that? Should I use ''advance random'' or is there any other way?

    Thank u.

  • klabundee and mrcgkh,

    You guys are literally amazing. Thank you.

  • Dear klabundee and oosyrag,

    Yes, the answer always going to be yes and no. When I save my array as you said, what should I do next?

    Thank u both for answering.

  • Hello, I've at least 100 random events in my game. They appear every 10 seconds. They are like:

    1)There is a pandemic. Will you open hospitals?

    -Yes -No

    2)They kidnapped you. Will you try to run?

    -Yes -No

    3)There was an earthquake. Will you run for help to people?

    -Yes -No

    Every yes and no answer has its own consequences. For example: If my player says Yes, his popularity will increase by 50, his money will increase by 1000 and his success will increase by 20. Money, popularity and success are my three global variables. So, when my player chooses yes or no my global variables will change accordingly. Yet, I don't know how to do that. Here's my array:

    If you share an example I would appreciate it.

  • Dear Vallar,

    This is my array, it includes random events and answers. For example, if the player chooses the yes answer in the 0,0 coordinates, his money will increase by 500 but his popularity will decrease by 50. And I have 100 random events like that and all of them have different outcomes. ı'm not sure how to arrange my 3 global variables; popularity-money and success according to the answers given by players (yes/no).

  • Hi, dear Construct community,

    I've mentioned before, I'm making a life simulator game. I have 3 global variables; money, success, and popularity. My player will face different random events and they will answer them yes/no. According to their answer, their global variables will increase or decrease. All the random events have different consequences so when they answer an event their popularity increases but maybe their success decreases. Or both of their money and success will increase. It all depends on the different events(I have 100 of them nearly). How can I arrange my 3 global variables for all of the random events? Should I use functions and how? Or is this even possible?

    Thank you.