How do I recreate a collision pollygon

0 favourites
  • 8 posts
From the Asset Store
Create a boss fight with this easy to follow game pack. Recreate the classic attacks of Mutoid Man from Super Smash TV
  • Hey,

    Have polygon, need polygon to resize in different way than sprite can. need to say polygon equal (0,0 - 0,1 - 200,100 - 200,99). make sense?

    think cannot be done. Maybe sdk but don't think can access that in any way.

    Resiszing polygon best solution, understand alternative ways to solve problem but workarounds less efficient. Take more work. Undesirable.



  • Interesting you know the workarounds will take more work, considering you don't know how to do it without yet..

    Changing the polygon can ofcourse be done in the image editor, just add animation frames where you change it and set the frame in your event sheet..

  • LittleStain

    1.) I do know how to solve my problem without re-sizing the polygon in multiple ways, demonstrated by solving a single aspect of the problem. Problem is multifaceted and will require 4x the work to fully solve. Solution cannot be scaled efficiently in future if project expands. Further, performance will be degraded in solutions based on benchmark comparisons. Much better to be able to set polygon directly.

    2.) Adding animation frames would require 4n frames where n is the total number of sprites of type x that can occur in a particular pattern known to exist in advance. A good suggestion considering most problems of this nature but not feasible in this case. Appreciate tip.

  • Would resizing/rotating another sprite handling the collision work?

    It's unclear what you need the collision-polygon change for..

    The feature to change at runtime doesn't exist, so logically one would look for other ways to simulate the effect..

  • The feature to change at runtime doesn't exist, so logically one would look for other ways to simulate the effect..

    Thats the confirmation I was looking for. I thought it may exist in the sdk but I couldn't find it, thought I would check.

    There are plenty of reasons to want to change polygons directly rather than having transforms control them. More from a procedural standpoint, trying to avoid editor side work. Its not something that is needed* but that would be nice.

    Rotating combined with resizing works to an extent to solve the problem but again requires more programming work, at least in the sense I need to do some trig to ensure proper placement rotation and stretching.

  • It could be there are other options, but that would depend greatly on what you are trying to achieve..

  • Presumably you can access and change the collision polygon at runtime with the sdk. Yann's "polygon" plugin changes the collision polygon as I recall. You could reference that for an example.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • R0J0hound - I will look into that. Thanks.

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