dop2000's Forum Posts

  • You've already asked this, why create a new post? Have you tried searching this forum or tutorials?

    It's not an easy task and hard-coding all crafting combinations with events is definitely a bad idea. You need some sort of a database (for example a text file in XML, JSON or CSV format) with the list of all items and materials needed to craft them.

  • Does this happen in preview? Have you tried running the game in Debug Mode? Check object counts on the left panel - if some object is constantly spawned and not getting destroyed, you'll be able to see this.

  • Making one image with crazy big resolution is a bad idea..

    You need to cut it into smaller pieces and use different images for different zoom levels.

  • I don't think there is an easy way to do this. Probably need to open every sprite and resize it.

    You can save your project as a folder and use some external program (like Photoshop) to re-scale all images in Img\ directory. But then you'll still need to re-import them to your project.

  • 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)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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