SVG with box around image?

  ... the SVG Extension for AndEngine.

SVG with box around image?

Postby Coder_For_Life22 » Sat Dec 31, 2011 6:51 pm

I am loading a SVG, and setting its Width to 200 and height to 300.

The problem is i am using this as a item to collide with other sprites.

The image bounds extends WAYY beyond the sprite.

Is there anyway i can have it crop the SVG closest to the SVG image.

Also i am using a Tiled SVG. When i collide with a wall, the doesnt go all the way to te box, its like the second column is shown but invisible.

for example the image extends where the red box is..I want it to WRAP exactly how the sprite is and dont take up anymore space.


Anyone ran into this issue?
User avatar
Posts: 1035
Joined: Wed Nov 09, 2011 5:37 pm

Re: SVG with box around image?

Postby cleisonmp » Wed Feb 15, 2012 2:06 am

have you find a solution for this?
Posts: 9
Joined: Thu Feb 09, 2012 7:46 pm

Re: SVG with box around image?

Postby Mathew » Sun Feb 26, 2012 6:23 pm

You just have to create polygon body. There is paid tool, which may generate pixel perfect body from your shape, check features section (as I remember) Also there is free vertex tool helper, which is also easy to use, to create better bodies (but for sure not pixel perfect) or do it manually (for example check physic examples, where Nicolas made body shape's like hexagon etc.)
User avatar
Posts: 1073
Joined: Sun Jul 31, 2011 2:49 pm
Location: Tarnów, Poland

Return to SVG

Who is online

Users browsing this forum: No registered users and 2 guests