Make a solid object curved based on transparent pixels

Get help using Construct 2

Post » Sat Apr 04, 2015 7:58 pm

Message: mrengy is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
A student of mine is working on a prototype of a basic platform game. There's a platform which is built as a "tiled background" object with the "solid" behavior. That object contains an image of rounded hills. Is there a way to make it behave such that a sprite can walk over the curve of the hills (the rest of the image is transparent)? At the moment, it is just behaving as a solid rectangle based on its containing box.
B
3
Posts: 3
Reputation: 183

Post » Sat Apr 04, 2015 8:15 pm

Not with a tiled background. If you want a collision shape other than the object's bounding box, you'll have to use a Sprite for the terrain and set its collision polygon accordingly. Information on collision polygons on this page.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,106

Post » Wed Apr 15, 2015 2:24 am

Thanks. That worked like a charm.
B
3
Posts: 3
Reputation: 183


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests