randomly's Recent Forum Activity

  • Depending on what you want to achieve, here are some guides extracted from the How Do I FAQ:

    Popup on overlap

    Dialogue system

    Dialogue system with XML

  • Huh that's wierd since my Text object is big enough already before the text gets set.

    Hm.

    Thanks anyways.

  • Asmodean

    That fixed it. Thanks.

    Is my laptop too slow or why is that an issue?

  • Hi everyone,

    been running into an issue with the Text object.

    Very simple though very annoying:

    The Text object renders input with one line for each word though I didn't add any "& newline".

    I thought that was a simple issue, but since my lines of code are so short, I have no idea what causes this.

    Code:

    Text properties:

    Rendered result (tested in Chrome & Firefox):

    I can't believe I'm stuck on such a basic thing, but this really screws me over and it annoys me that I can't find the reason for this..

    Anybody knows a fix for this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 13spongg13 Yeah, sure, that's possible.

    But it would take up waaaaay more CPU power.

    Imagine if you want to move like 50 cards for example.

    Pathfinding would have to find a path for each and every single card while lerp for example just has to calculate once for every card.

  • Almost!

    It would be -60+loopindex*30.

    Explanation:

    Each fireball's angle gets set in the same loop as it was created.

    "loopindex" for the first loopindex is 1, for the second it's 2 and for the third it's 3.

    This means that for the first fireball created, the calculation would be -60+1*30 which is -30, exactly what we want. The second one would be -60+2*30 which would be 0. And so on.

    Now to make this simplier, you could exchange the "repeat" condition by a "for" condition, in this case "For 0 to 2".

    You would then change the "Set angle" action to exactly what you proposed, -30+loopindex*30, since the first loopindex would now be 0 and the last one 2.

    Choose whatever you prefer. :)

    (Remember: "Repeat" always starts at loopindex 1 while "For" makes you able to set where to start and where to end.)

  • Check the provided files again. Both capx contain the same events and both contain text and no buttons.

    (And both work)

    Here is an example of how to do it with a button:

    https://www.dropbox.com/s/b1dybi9y969me ... .capx?dl=1

  • Whoopsiewhoo, that

      and
    • was a formatting fault by me. Keep forgetting that BBCode doesn't work in code.. Anyways, set it up like this:
      Just try it out, see if it suits your needings and if you need to modify the angle, just post it. :) EDIT: Should look like this:
  • Could you upload a video of that issue?

    Go with some free screen recorder, like this one (http://screencapturer.com/)

  • At the point where you want to spawn the three bullets, add this:

    Repeat 3 times [condition]
           -> Create object "fireball" [action]
           -> "fireball": set angle to: -20+loopindex*10[/code:20jmc0tt]
    
    This will spawn three fireballs, one at the angle -10, one at 0 and one at 10.
    
    If you want something different, just replace the second action with this formula:
    [code:20jmc0tt]"fireball": set angle to: ([highest angle you want] minus [angular difference between fireballs]) +loopindex * [angular difference between fireballs][/code:20jmc0tt]
    
    If you need more help, just send me your .capx or post the context of those fireballs, like angles and stuff.
  • Ahh... elasticity to 1 for every object..

    How could I overlook that. Sometimes it's the small things that make a difference.

    (And yeah, I tried to use the Apply impulse action to simulate bouncing off, not for anything silly )

    Thanks for your help.

  • 99Instances2Go

    Nope, not yet. I'll update this thread as soon as my problem is solved.

randomly's avatar

randomly

Member since 26 Sep, 2016

Twitter
randomly has 1 followers

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies