How do I make a solid not be the image border?

  • so, i created a level in illustrator (platformer) and i want to make it a solid so my sprite does not fall through it. i exported it as a png, but when i make it a solid it treats the entire image as the solid (the image border is the edge) but instead i want to use the actual image and i want it to ignore the transparency. how would i do this?

  • You'd want to edit the collision polygon inside the image editor..

  • how would i do that? sorry i only started today...

  • oh i got it. how do i add more points?

  • right click on a point and choose add point..

  • okay, got it, i now want to make multiple collision polygons on image... is this possible?

  • okay, got it, i now want to make multiple collision polygons on image... is this possible?

    No, you can only have one collision mesh per sprite. What you can do, also to reduce the number of collision points in the mesh, is to create collision sprites, these you place where you want collisions to happen and then turn them invisible. So you don't use your actually level image as collision mesh but these. Just make them small (32x32) in the sprite editor and then you increase there size in the editor it self, to reduce the amount of memory used.

    Alternative you design your level, so you have a background, and then all the parts you want the player to collide with you add on top of the background and then you can set up collision for these.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • okay, thanks. 1 more question... how do i resize the text in a button?

  • and another, is there any way of adding an offset to a "scrollto"?

  • and another, is there any way of adding an offset to a "scrollto"?

    You could use the system scrollto action instead of the scrollto behaviour, or you could use the scrollto behaviour on another sprite offsetted to where you'd like..

  • I prefer the invisible sprite as a camera, as it allows you to 'clamp' it to an area.

    This will allow you to stop the camera going too far/close to an edge, but allow the sprites to go right up to the edges.

  • I prefer the invisible sprite as a camera, as it allows you to 'clamp' it to an area.

    This will allow you to stop the camera going too far/close to an edge, but allow the sprites to go right up to the edges.

    You could ofcourse also do that with the system scrollto, but using a sprite will make it a lot more visible..

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