blackhornet's Forum Posts

  • ghost

    1) If you have anti-aliasing at High, theres nothing more I can do.

    2) I don't see a gap. The space between the tip of the 'T' and the 'e' is the same as the other letters.

  • Actually a better argument would be that fonts aren't square anyway, so the chance that it will fit into a square optimally, are actually low. As I said, the algorithm does try to use a square at first, then looks for the dimensions that reduce the overall file size, while still maintaining the power-of-2 rule.

  • The spritefont page states that it's preferred that the image be a power of two, but doesn't specify 'square', and the built-in spirtefont also isn't square. Ashley also made a comment a while back that the power of two issue is going away: ref

    I'd rather not mess with the calculations if I can avoid it. It took a while to get it right.

  • I actually try to get the image to be square, but there's a bunch of factors that affect the final size that's calculated. The final file size is exactly the same in the case you illustrate, so it really doesn't matter in the end.

  • This is just a variation on the Asteroids behaviour, which has been discussed many times.

    tutorial

  • This is just the "Template: Infinite jumping" example from the New menu!

  • See if this helps:

    PinSample.capx

    Containers actually don't work well if the elements are already in the layout as you aren't guaranteed to get them in the right order. This does the same thing manually. Very little extra code is actually needed.

  • You can use Containers to tie two objects together. It's great that you are reading the manual, but you should try some of the tutorials also. You can also post a CAPX of what you have so far, and the current problem, and people will be all to happy to help.

  • Your 'Counter' mechanism doesn't work. It keeps increasing, and then you are telling the script to pick the Counter instance, but once the Counter value gets over 10, there aren't 10 strawberries to pick from. You need to devise a better mechanism for picking random strawberries to delete. Try: int(random(0,Rock.Count))

    Oh, and the default size of the Array is 10! Increase the number of elements.

  • You need to combine events 50 & 51. You are currently getting one row of 5s, and one column of 5s, not a 'square' of 5s.

    A similar example:

    ArraySquare.capx

  • I would call this a bug. While should only loop until its condition(s) become false, which they are in this case.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I provided the solution on the other thread. That's why I suggested killing this one. It's confusing having two threads for the same problem.

  • I hadn't realized that you had modified things and broken what I had already fixed. That's why I was confused that you were asking for the same solution again. You should mark this thread as solved, and keep the other going, if needed still.

  • onPlayerDrop(isOverCell)

    You can't use MapItems.UID because you haven't picked the current one.

    You should not rely on a fixed UID (that is =0). You should store the UID of the placeholder of startup and compare to that. That way it can change to any number in the future and everything will still work.

  • I posted twice here. Did you see the first?