Balsa1's Forum Posts

  • 9 posts
  • Hi all,

    in my game I want to add a power up (or curse) which will invert the movements of the player (only left and right) for a small amount of time and then the movements will go back to normal. The player has the "platform" behaviors.

    Any help?

  • Set the value of the progress bar using the distance system expression:

    https://www.scirra.com/manual/126/system-expressions

    currentDistance = distance(Sprite.X, Sprite.Y, Goal.X, Goal.Y)

    If you want the length of the bar to be a percentage of the distance instead of the exact distance, on start of layout, set a variable originalDistance storing the distance. Then, when you set the width of bar, set it to currentDistance/originalDistance.

    Thank you so much! that worked perfectly <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • Hi all,

    I have a working progress bar but I can't figure out how can I add to the bar's value when my player is moving closer to another object. For example if my character goes further away from the object or just doesn't move then it wont add any value to the progress bar, and if the player moves closer to the object it starts to add value so when the player touches the object the progress bar is completed.

    Any help ?

  • You can use a variable.

    Create a variable "count = 0"

    Spawn objects only if "count < 20"

    And increase count by 1 each time you spawn an object.

    Thank you!! you are my savior

  • Platform:Y<0.......Destroy

    Hello again, I was wandering if you would also know how to stop object from spawning? thanks

  • Platform:Y<0.......Destroy

    Thank you so much!! that worked perfectly thank you again

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all, I'm a beginner in construct 2 (and sorry for my English... it's my second language).

    I'm making a vertical scroller game.

    My problem is that I've created spawning platforms that spawns outside the layer (from below) and then they would exit from the top. I can't do the "destroy outside layout" behavior otherwise they would destroy before coming in the layout. So I though to do an invisible object at the top of the layout, that when it collides with the platforms, it would destroy them individually, but it destroys all of them. Any ideas of what I can do?

  • HI everyone, I need help. For my college project I had to do a three level game and then export it. I've always worked with the free version but then when I had to export it, it says that the project exceeded the free version limits and it won't let me export it :S. The deadline is for tomorrow. Do you have any ideas of I can I export it?

  • HI everyone, I need help. For my college project I had to do a three level game and then export it. I've always worked with the free version but then when I had to export it, it says that the project exceeded the free version limits and it won't let me export it :S. The deadline is for tomorrow. Do you have any ideas of I can I export it?

  • 9 posts