Spritefont (Collision)?

0 favourites
  • 7 posts
From the Asset Store
Forget about default textbox restrictions, you can create sprites atop of the textbox
  • Just wondering how come its not possible for spritefont to check vs collisions?

    Meaning that if you do Spritefont is overlapping some other object?

    It can be checked against by other objects and it do have a collision mesh as well. Any particular reason why it doesn't work?

  • I would love it if it could. Would make making GUI's easier. Same with 9Patch.

  • Touch/mouse works on spritefont+, so I presume it does on the normal plugin as well

  • Touch/Mouse really wasn't the need. I found use collisions to determine overlapping to create GUI Panels by pinning objects based on overlap.

    Is SpriteFont overlapping 9Patch then Pin SpriteFont to 9Patch.

    That way I have easily created GUI panels. Easy for drag/drop, sliding etc. However I have a work around and am not blocked. It would just be more convenient. I also don't use Thirdparty plugins for any low level sharing tools. I use thirdparty plugins for putting together projects. That way if I give out the GUI tool set I know that others will have no need to download a plugin they don't want.

  • Should be relatively simple to pin your spritefont object to an invisible sprite, set the size of the sprite to the size of your spritefont object and then use the invisible object for the collision checking...

  • that's kinda a good idea. I've already got everything working, but that's not bad idea to make it even easier and back to the original design.

    What I can do is create a sprite for SpriteFont and other non collision widgets in the ES at run time. Compare the collision of the sprite. If overlapping a 9patch sprite collider. Then pin. Good idea. Then I can destroy the colliders once done. Brilliant. Good inspiration there.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Linking it to another sprite should fix it, I was just wondering how come it weren't possible as it have a collision mesh like any other object. But thanks anyway, I was more interested the reason or what things makes spritefonts "special" that it had been decided that it shouldn't work with this.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)