LogicArts's Forum Posts

  • Hi, take a look at the settings, the Save & Backup option and find it by Default save location. Try saving your game to the cloud or using another storage.

  • Hi, if you can post a screenshot of your code, it will help you understand more. But I understand a little bit, when you're going to fade the audio with the global variable, make sure you only do it once. The condition "Trigger once while true" can help you.

    LogicArts®

  • Hello, I understand your situation a little, but I will try to help you. I think you should put a padlock so you can't click repeatedly, for example, you can only click if the revenue value is zero.

    LogicArts®

  • If I understand a little bit you want to loop and receive the variable name and value, example: Life - 50. If so, the dictionaryshould help you.

    LogicArts®

  • Just a temporary issue, it's been resolved as usual.

    LogicArts®

  • I managed to find a solution for this.

    I added a Tween behavior to the text object and two variables, one for punctuation and one for display in text. When the variable that appears in the text is different from the punctuation, I interpolate the value. At the moment I execute the interpolation (Setting the variable) I use int().

    LogicArts®

  • Got it, I'll recode the method I used and I'll post the image.

    LogicArts®

  • In my case I would like the solution to be to animate the punctuation text, I haven't coded this event yet. I made a few tries, but it didn't work. So I wouldn't have images for this. Suppose your score is at 0 and you want it to go to 10, instead of just showing 10, it would be animated by gradually adding, example: 0, 1, 2, 3, 4, 5...

    LogicArts®

  • Hey guys! In my game, the player gets two points for every hit. I would like to animate a text that displays your score gradually, for example: Score is 20, the player hits two points and the text animates 20, 21, 22. I've tried using a variable for the text, as long as it's less than the score, add one, but the value always ends up in float, not displaying the integer, when trying to use the int() command just doesn't work. Does anyone have any ideas about this? Thank you very much in advance.

    LogicArts®

  • Thank you Biscotto, your explanation made me have the idea of ​​how to solve my problem.

  • Hi everyone, how could I check if an element exists in the array and discard it so it's not read again?

    Tagged:

  • > The force of gravity between objects can be done with:

    F=G*m1*m2/r^2

    Where

    m1 and m2 are the masses of the two objects and r is the distance between them.

    G is a constant. It comes from

    https://en.m.wikipedia.org/wiki/Newton%27s_law_of_universal_gravitation

    But since we are not dealing with real world scales we can just fudge it.

    You can try the following. Also to get the moon to orbit you just have to have the perpendicular velocity high enough.

    Global number a=0

    Global number r=0

    Global number f=0

    For each planet

    — set a to angle(moon.x, moon.y, planet.x, planet.y)

    — set r to distance(moon.x, moon.y, planet.x, planet.y)

    — set f to 100 * moon.physics.mass * planet.physics.mass/r^2

    — moon: physics: apply force (f*cos(a), f*sin(a))

    Great explanation, I had already tried to use Newton's theory but I couldn't apply it correctly, but his explanation helped me to understand the concept and to get what I needed, thanks to everyone :D

  • Exactly that, imagine that when you approach the circle it will be pulled to the center but when you touch the screen it will push outwards, but if you keep pressed, it will continue to rotate around the circle

  • Hello everyone, I would like a help to know how to do realistic physics in Construct, I will give an example. I have a large circle and a small one, when the small circle approaches the big one it is pulled by gravity causing an orbit. At the same time pressing the screen applies a force to control the fall without it touching the big circle.Therefore, applying force to it is ejected out of the gravitational field and launched to another nearby circle with gravity as well. upload.wikimedia.org/wikipedia/commons/0/0d/Orbital_resonance_of_Mercury.gif

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On the Construct 3 Addons website there could be an option that shows photos, so that we know what the addon will really do, thus saving time to install something that will not accomplish what it really wants