Construct 3 suggestions & ideas

Suggest and vote on ideas for Construct 3! Please note this is only one aspect of planning. We do not guarantee any features here will be implemented, even if they are top-voted ideas. The aim is just to collect feedback. Remember to search for existing submissions before adding an idea, describe your ideas as comprehensively as possible, and vote for plausible ideas that are well thought out. Please see our full guidelines on suggesting features.

23 VOTE

Collision polygon outside bounding box

Sometimes, for buttons or game objects, you need to have a bigger area than the visible image itself.

So far, the solutions are. 

Add transparent space around the image (more image space)

Add an invisible object to catch the touch event (more objects and less simple)

 

  • Guest
  • Jul 5 2019
  • No status
  • Attach files
  • Admin
    Ashley Gullen commented
    06 Jul 09:52

    This would be a difficult change to make and potentially de-optimise games, because currently the collision engine uses the bounding box as a fast way to discard potential overlap candidates before doing a more costly collision polygon test. It also uses the bounding box to arrange objects in to collision cells. This change would make both cases invalid. Meanwhile you can simply enlarge the canvas of the image to get more space to put your collision polygon.

  • Guest commented
    06 Jul 13:56

    I Understand. And what if just you add like an "offset" parameter. So the calculations still are a square but just a bit bigger than the image. Leaving blank space isn't optimal when you have many sprites touchable buttons. Onviously we can use another transparent object to catch the touch event but it's a messy solution.

  • Ricard Jensen commented
    15 Jul 09:41

    I think it would be nice to have a collision object or a collision node that you can attach to object, similar to behaviours, effects or container. 

    It would also be nice if the points of object could be edited directly in the layout editor.

    Drawing of placing collision objects directly on the layout would also be good. them you could attach or pin them to other objects, or define larger areas where you can't go, and edit the areas in in the layout editor.