lamar's Forum Posts

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.

  • Awesome, thank you for your answer!

    How would one go about making one level increasingly faster, and creating faster spawns?

    You use a global variable timer for spawning and decrease the amount of time between spawns.

    Global Variable TIMER = 3

    Every TIMER seconds: Spawn Enemy

    On Difficulty = 1 Set TIMER = 3

    On Difficulty =2 Set TIMER = 2

    On Difficulty =3 Set Timer = 1

    That way the spawn is faster and more difficult.

  • You need a Global Variable to keep track of your score.

    Create a Global Variable and call it Score.

    Global Variable Score = 0

    Now each time they get a correct answer use Add To in the systems command to add it to Score.

    On Correct Answer: Add To Score +10

    Then set the text to the Score variable with no quotation marks

    Set Text1 to Score

  • They use TotalDistance for scoring in that example.

    Add the Scirra Arcade object to your layout (second object) and add this line to the event:

    You will need to upload to the scirra arcade and create a leader board for the game and then it will submit that TotalDistance to the leader board at the end of the game.

    If you want to Save it locally while you play use the Save and Load commands.

  • lamar

    I am referring to the following:

    Changing the width and height will not create such effect.

    Can someone guide me in the right direction? Thanks.

    Changing the sprite used for the effect and width and height settings will give you that effect but if you want a different answer I wish you luck!

  • lamar

    Yes, however I still need to find a way to create that sharp edge and blade effect.

    The effect is in the capx. The height and width can be adjusted for the effect you want.

  • You can upload to the Scirra arcade in the free version right?

    Export it to scirra arcade and upload to the arcade and share that link with your friends.

  • I need to buy construct 2 for that to work?

    Click on the export button on top of layout. You should see at the bottom Desktop NW.js.

    I think that is included with the free version but I could be wrong?

  • Sorry to bother some more but having trouble making a version that's playable without the program installed. I wanted to show it off to my friends. Figured I would ask here instead of a new topic.

    You can export it as a playable NW.js file.

    That will give you versions for apple, Unix and windows 32 or 64 bit so they can be played on any PC.

  • Did you download the capx:

    https://www.scirra.com/forum/download/file.php?id=2671

    You can adjust the swipe using the Height and Width settings for the swipe sprite to make it smoother.