How do I detect tiled BG collision and rotate 9patch

0 favourites
  • 5 posts
From the Asset Store
Each tile 64 by 64 pixels - Ultimate Tile Set for your awesome games
  • Hi guys!

    I need to make scalling SFX: laser, that has different sprite on the head.

    Problem #1: I cannot detect collision between TiledBG and Target (there isn't collision for tiledBG) to scale TiledBG

    Problem #2:The best way would be use 9patch, but as I understood it's impossible to rotate and set angle.

    How can I figure out it?

  • My second question and noone answer

  • #1 You can't edit TiledBackgrounds collision

    #2 You can't rotate 9patch

    I don't know if it's possible or not, and i don't know how.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Problem #1:

    It's not possible to do directly, but make a standard sprite on TOP of your TiledBG, then set opacity for this new sprite to 0 and use the sprite for collision detection.

    Problem #2:

    I'm new to Construct 2 myself, and 9patch is one of the objects I haven't gotten around to play with. But as the 9patch is meant for scaling simple geometry out of aspect, without the weird things that happens as standard, I'm thinking you may be using 9patch the wrong place...? What I mean is; how about dropping 9patch and make a sprite instead? Then rotation, set angle etc. is easily solved.

  • I think you can actually test the collision between a sprite and a tiledbackground (not the other way around). The result will be the same.

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