dop2000's Forum Posts

  • Signals are "global". They just pause execution of anevent, not bound to any particular object or instance.

    Signals may tricky to work with, try not to re-use same signals within a short period of time, be careful with using them in repeating/looping events.

  • Which behavior are you using? With Bullet, for example, you can set Sprite2 Bullet speed to Sprite1.Bullet.Speed

    .

    Or if you want to simply "mirror" all movements of sprite1, you can do this:

    On every tick: Sprite2 set position to (Sprite1.x+100, Sprite1.y+100)

  • Also edit post isn't working for me.

    It says the posts being edited but whats displayed is the old message, when you go to edit it again it shows the edited message.

    Reloading the page a few times helps for me. (Ctrl-F5)

  • Wait doesn't work like that.

    You need to use "System Every 3 seconds" and add "DartTrap has LOS to Player" as a second condition to it.

    Or better yet, use Timer behavior.

  • It's actually quite easy to "upgrade" objects to a family, I did this many times, here is the tutorial:

    scirra.com/tutorials/535/how-to-upgrade-an-object-to-a-family

  • Yeah, random() starts with 0. So floor(random(3)) is the same as choose(0,1,2), but it will never equal 3.

  • I agree with what you are saying, but have you actually tried running random() and choose() a million times and comparing them? I have tried it just now on my very low-end android phone (which probably costs about $20 now).

    1,000,000 calculations of round(random(17)) take about 5 seconds.

    1,000,000 calculations of choose(1,2,3...,17) take about 6 seconds.

    I really doubt that igalencar needs to spawn one million explosions at once, and even if he was, the difference in performance of these two math functions would be the least of his worries.

  • See my first comment in this post, there is a code that sets jump and speed variables to values from the array.

  • You can just pin a cone sprite, but it will not be blocked by obstacles.

    If you want it to look realistic, you can try this method:

    construct.net/forum/construct-2/how-do-i-18/how-do-i-make-an-enemy-line-of-130966

  • Did you mean "swipe"? (Not "spin")

    If you want to detect swipe gestures, you can use Touch.SpeedAt(0) and Touch.AngleAt(0) expressions.

    For example:

  • Well, you can send me your project privately if you want.

    You can find my email here.

  • There is practically no difference in performance between using floor(random(17)) or choose(1,2,3...17).

    You can try them in "Repeat 1000000 times" loop and you'll see that both expression take the same (very little) time to compute.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe your LOS settings are wrong - distance too short or something similar. It would be easier if you could share the project file.

  • That's just the AJAX tag name - "Animations". You can rename it to whatever you like, "ItemsArrayData" for example.

    Tags are needed in case you are requesting multiple files with AJAX and you need to know which is which.

  • That's way too many frames for a simple explosion! Why do you need 17 animations?! Just use one or two, randomly flip, mirror, rotate, apply some effect and you can save lots of memory!

    Also, you can make very resource-efficient explosions with particles. (see Particle Explosions template in C3)