lamar's Recent Forum Activity

  • You can pin it to the player and just make it visible when needed.

    If your player is going to the top your icon is probably off the screen.

  • if i type the same correct answer ,the score goes up as many times as i type it. how can i make it stop?

    Use a global variable as a trigger to stop any action.

    If they answer a question correct add 1 to that variable so it won't repeat.

    On answered correct: Set AnswerCheck = 2

    AnswerCheck = 1

  • Are you resetting persistent objects when you go back to the game?

    Why are you going back to the main menu after a game is ended?

    If you mean you want to save a score that is a whole different question.

  • Well, unless you have some other events where CargaEscopeta is being reduced that will never work.

    You have it set to 8 in the global variable and I do not see anywhere where you are reducing that number so your time event will never happen because it is looking for that variable to = 0

  • You would need a variable for each slider bar to store the current value and then compare them.

    Variables Slider1 = 0 Slider2 = 0

    On Slider1 = 5 set Slider2 = 5

    On Slider2 = 6 Set Slider1 =4

    and so on.

  • Finally i understant what you mean.Thanks a lot man.you are the best!

    No problem. Now study how that was done because you will use that over and over in your games.

  • I did it but no results. When i type correct answer in textbox it shows 7 points. Then i type again another correct answer for 10 points. But it shows 10 on score. not 17

    You don't set the text to a number. You add that to the Score variable and set the text to the Score variable.

  • i cant understand what "Set Text1 to Score" means. where i do this ? in event sheet ? in object text1 ?

    From your OP"

    "action -> text1 /set text "10"

    So you have a text on your screen named text1 to hold the score right?

    If not you need to create a text to hold the score.

    Then click on that text in the events and look at the bottome where it says SET TEXT.

    Click on that and it will show two quotation marks. The quotation marks are only used to set the text to words or characters not to a number.

    Delete the quotation marks and use your Score variable instead.

    Set Text to Score

    No quotation marks.

    If you have a very large number you will need to make the text box on the layout large enough to hold that number or it will not show up when you run the game.

  • I found the Add To in system. But how i display the Score in text1 ?

    Like I said above:

    Set Text1 to Score

    No quotation marks. Score is whatever variable name you are using to keep track of the score.

    It will appear as a number in the text you created.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks lamar! . You are in my credits list!

    Thanks- what I would really like is for you to study those commands so you understand them completely and that way you can help someone when they have that question in the forum.

  • i will try it but i want to mention that not all answers give +10 score. some give 10 some give 20 etc.

    thanks anyway

    Doesn't matter as long as you add that amount of points to Score it will still keep track of score and that is the way to do it.

  • I can't see your whole event sheet. Make it smaller.

    It looks like you are resetting your check variable to zero in your reload event so it will never reload.

lamar's avatar

lamar

Member since 11 Feb, 2014

Twitter
lamar has 8 followers

Connect with lamar