kriand's Forum Posts

  • And your code really looks like this?

    This should work fine. But here another option i usually use to prevent the Player from taking several items with one click when they overlap. I store the UID of the targeted object and compare it. That may look like this:

    btw - i uploaded a jpg and a png file and both worked.

  • What does this screenshot show us? How it should look like or how it should not look like? Click on your project in the project line and set 'Sampling' to 'Point'. If that does not help, we need more info.

  • You can open the file and look at it with free C3: editor.construct.net

    I have C2 but i am too lazy to do it again. The code is in both versions the same.

  • Hey

    I dont think that it is impossible. Its just a little more work here and there. Here a modified version of the 'Flying along template'. This is fast made and needs a lot of fine tuning but maybe it will help you or gives you an idea:

    1drv.ms/u/s!Ap_-qxoGKbDcg2Y-t8sZ_hyYbypD

  • System > Pick overlapping point

  • There is an 'on created' condition for Sprites. There you can save the original size.

  • sometimes it is not obvious, but when i put the 'Picked=0'-condition above the 'pick random'-condition it seems to work:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In this case you have to store the original size in instance variables and use them like this:

  • just tried it with one sprite and a handful instances and it works perfectly. Try it again or post your your project.

  • Yes. You can create an instance boolean and set it to 'true' when the card was picked. Then add the condition 'is boolean not true' under 'pick random'. Find out where and when you can reset that boolean.

  • You can do it like this:

    Set Sprite Width to Self.Width + Self.Width * 0.1

    Set Sprite Height to Self.Height + Self.Height * 0.1

    I dont think you need a loop for this but i did not try.

  • I wanted to point out that you should use tilemaps to build your stage. If you use too many sprites, it has a negative impact on performance. Tilemaps are much easier to use, especially if you use many tiles. Maybe this tutorial will help you, even with other aspects about platformer.

    youtu.be/WPpNVCd02ww

  • It's because you created sprites instead of tilemaps. After starting the layout they play the animation and what you see is the last frame.

  • Hey MrTholl

    The Persistent behavior is not a suitable behavior for the player. Delete this one and, in case, disable the 'Global' property. Create a global object like an array or a dictinary to store persistent player stats. You dont need to fill out the array/dictionaray directly. It is enough to give it some instance variables and work with them:

  • i was making a small pong with balls(planets) circulating around the sun and just wanted them to ..circulate .

    yes. thats what i did. your solution is a good one too. if it works like you expected it to work its fine.