El Constructorr's Forum Posts

  • An easy solution could be to have an invisible and tiny Physics 'bullet' sprite pinned to the bullet at all times? So it will be a realistic Physics collision.

    If not that, then you can do it with a Bullet (non-Physics) and hitbox (Physics) by measuring the perpendicular distance from it's pivot (and/or center of gravity that you define) multiplying with a factor of bullet speed, which will give you the amount of 'Torque' that should be applied to the Physics object combined with (inversely proportional to distance) an impulse. This will require a lot of trials and errors. To save time, you can set up a repeating algorithm where you simply adjust the Torque factor and Impulse and perhaps compare it with an identical clones of two Physics objects to see which values match best to the real impact.

    I would personally go with the first option and make life simple.

  • Yes, that's the problem as the above user explained. And yes, increase the text box size (or reduce font).

    Alternatively, if you want Ranktxt exactly where it is, then you can just do this:

    This 'Wait 0 seconds' simply skips the following actions and runs them on the 'next tick'. (So by then, it has already completed reading and writing the Array, and comes back to update Ranktxt in nearly 0 seconds)

  • For the long way (i.e. searching between multiple numbers against numbers to find the match) I suggest using Arrays to store the numbers, instead of strings. Then looping through brute force method. It will consume a lot of CPU, so this searching should be through a function, as a trigger when a new line has been placed.

    But for the shorter way, I do believe there could be. Imagine if each Dot can find out how many lines are touching? then you don't need to do anything else. Each dot will display a text, that's all you need for the game right.

    How can each dot know how many lines are touching? I have no idea! or I must be missing something. Perhaps dop2000 may be able to help here.

  • If only two dots, it shouldn't be hard. You can improvise in many ways.

    For example:

    Pick first one (you can pick it by Top of layer), then send its "num" to a Function.

    That function will Pick the second dot (Bottom of layer), and compare its "num" with the parameters sent (of the other dot).

    So that function will help you pick the other, and also return the matching number.

  • No. Scirra does not own any percentage or part of your game. Your creation is all yours.

    Except of course, the C3 Splash screen, which you can pay to remove... or let there be.

  • "Wait for signal 'touched' " is why it is not working.

    The signal "touched" is probably signaled 'before' you enter that Event. --OR-- since it's inside a Trigger event (On Touched) it may be just checking for signal at that very moment only.

    Anyway, You must remove the 'Wait for signal "touched" ' and if you think it's important, then try program it differently.

    For example: Have an instance variable for menuButton called "touched', and instead of using signals, use that variable to True. Then, On Touched menuButton, also, if that "touched" is True, then go to Levels.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    hi i'm AC and this Discussion is for chatting you can do what ever you want

    Yeah, until Ashley closes this thread :P

    ..and Welcome Anthony, nice to have you here.

  • Are you sure you're using "Touch" and not "Mouse" object ?

    You must share your c3p project file for us to look what's wrong. OR if your events are not too many, then share a screenshot of eventsheet where Touch conditions are used.

  • It's easily possible. Simple maths would do it, by using the % 'Modulo' (remainder) operator.

    Go to System --> Compare two values, then write this:

    It means, when the remainder of (shots/10) = 0, then do something. So every multiple of 10 (of shots) it will become true.

    Your events will then simply be:

    ..and so on!

    (Note: It will also unexpectedly trigger when shots or kills are 0, because 0%10 is also 0. So just have another condition of shots > 0 to solve that). Let me know if it works.

  • Same! I turned off UI Animations after NoSoul8 (2 days ago) and today I realized when I copy-pasted a ridiculously large sized image in the Editor and was trying to work on it, (normally when things either Grey out for good, or crash completely), it went Grey for a second and returned back to normal !

    So it probably does work thanks to the UI Animation off !

  • And also, don't need the "Every Tick" event. You can "Set Text" under the action of "Add 5 to levelmoney". This way it won't be updating the text every tick (really, it shouldn't) and only update it when the value changes.

    And yes, it is now very concise and efficient than before.

  • Doesn't happen all the time, but 3/10 times maybe:

    When I 'Edit' my recently created Post (or reply), it doesn't get refreshed ! It simply doesn't update, and still shows the old one.

    Usually happens when I Edit the post rather quickly (like within 15 seconds?) I don't know. Anyone else?

  • Unfortunately, there is no built-in Plugin in C3 for that.

    But, If you're willing to set it up manually, you can go through dop2000's post here:

    https://www.construct.net/en/tutorials/sending-data-construct-23-1447

    And if you don't want to bother creating one yourself, you can buy a $10 Firebase Plugin, developed by Sparsha: (This includes Firebase Google/Facebook/Email/Phone Sign-up/Sign-in Authentications as well)

    https://sparsha-dhar.itch.io/construct-3-firebase-plugin

  • You're welcome.

    Yep, that will work. So instead of any touch start, it would be On touching object (invisible region). (Then hide the region from there)

    Also, if you want to enable more flinging when the Ball comes to ground and stops again (like in Golf).. then you can just bring back the invisible region on the Ball.X, Ball.Y when Ball.Physics.OverallVelocity < 0.1

  • Just like we used to do in C2 remember? the capx project file, open with WinRar?

    Download the c3p file (local copy), Right-click, Open-with, Choose WinRar.

    There you see the images or animations, etc.