bllaaa's Recent Forum Activity

  • Thanks Plinkie ^^

    I made what you said and it works, but what I want to do is a bit different. I want to display a custom message called by a variable.

    1/- When my player collides with the computer, it becomes active.

    2/- If the player presses A when it's active a message appears. On the computer with variable "message"=1, the messages displayed is the 1. If he collides with computer 2, it's the message 2 which appears.

    Currently when the text field displays "1". What I would, it's displayed the message 1 "Il y à une trappe sous les arcs électriques." (sorry it's in french ^^)

    Thanks a lot for your help

  • Hi everybody.

    In my game, my player can find messages on computer. I want to make a code useful and simple.

    When my player collide with a computer, he can activate it with A button and a specific message appear. Each computer has its own message.

    So how can I do that?

    Currently, when my player collide I know how to show à text message. But not how to show thé message 1 on the computer 1. The message 2 on computer 2...

    Need your help. Thanks a lot ^^

  • Ok, youre answer, helped me a lot. I found a solution.

    Now, when I create "blockFxSpark", it plays an animation with only one frame. This frame is void.

    When its created, its boolean "isActive" become "true"

    When this boolean is true, "blockFxSpark" plays its animation.

    And when the animation is finished, I kill "blockFxSpark" and the boolean switch to false.

    So now I only have one occurrence of this animation because I kill it. And its probably best like that. ^^

    Thanks for youre help.

    Here it's a screenshot for helping others. ^^

  • Ah sorry... I refreshed the screeenshot, here is an english version now. ^^

    Yes, when the player taps on the gold block, I spawn "blockFxSpark" over it. And I would it plays its default animation once. And it does it a bit. ^^

    It's not a good practice? How should I do?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On the gif below you can see I click 3 times on the stone block. My animation works perfectly because I maintain the click.

    After this 3 times, I still click 3 times. And you can see the animation is played more than once each time.

    https://gph.is/2Ssovcx

  • I found something interesting. If I click on my object and maintain the click, it works perfectly. But if I only click quickly once it plays the animation more than once.

    I specify that the animation is not played on the released.

  • When I click or Tap on "blockGold", it plays "blockFxSpark" on layer 2.

    It works nicely, except it plays the animations more than once.

    As you can see, the animation isn't looped. ^^

  • You do not have permission to view this post

  • It's a recurent problem, that I have. When I play an animation on a "tap" or a "click", often this animation is played many times consecutively.

    I always verified, the "loop button" isn't checked.

    Is someone can help me please.

    Tagged:

  • , thanks for your help, it works perfectly. I share a screenshot for others wh'll have the same difficulties.

  • Hi everybody. I need your help. ^^

    I made a game with an object grid. When the user taps on an object, he destroys it. When this object disappears a new one replaces it.

    So I need to create a new one using percentage. Because it's possible to have one from those four: wood, stone, gold, diamond.

    I would the new one will be a wood one at 70%, stone at 24%, Gold at 5% and diamond at 1%.

    But I don't know how to do it.

    So I made this

    Tagged:

  • Yes, I want he die, but I don't destruct it.

    So the enemy continues to collide with him. And when the enemy collides with the player, the player played animation moved and winks.

    When I disable collision like you said, my character (enemy or player) goes through the platform.

bllaaa's avatar

bllaaa

Member since 20 Aug, 2013

None one is following bllaaa yet!

Trophy Case

  • 11-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies