Can you export/import tile collision shapes?

Blacksmith

  • Posts: 142
I want to transfer 54 tiles to another project, but the custom collision shapes aren't transferring with the tile images.
I exported the tile set, and also sent it to Stencylforge without success. Suggestions? Otherwise it is many hours of work. 
Thanks.

I don't think you can buddy, since the Collisions are a unique part of that game.
An imported collision won't work, because the Engine doesn't remember creating them or something...

I've tried exporting a 90* circle ramp collision, but it didn't work...

Anyway good luck.
I'm 17 years old, here to help and Entertain. {Also to make fun games}
ADAM: (http://www.stencyl.com/game/play/25588)
Also, if you need help making a platformer, search {Jumper} in Stencyl Forge. This is a player with everything you need in it, that i made. Enjoy!

Blacksmith

  • Posts: 142
Thanks for the quick reply. It's unfortunate because if you export an actor, it exports not just the animation frames but also all of the behaviours, collision shapes, other attributes, etc. Seems like an omission that exported tiles don't bring with them the collision shapes they are associated with.

Maybe they don't because almost everyone just uses box collisions? There are a few default collisions...

But only a few do what is needed.

What shapes do you need for you're Actors? (Square, Round, pentagon, ect.)
I'm 17 years old, here to help and Entertain. {Also to make fun games}
ADAM: (http://www.stencyl.com/game/play/25588)
Also, if you need help making a platformer, search {Jumper} in Stencyl Forge. This is a player with everything you need in it, that i made. Enjoy!

Blacksmith

  • Posts: 142
NoFace, thanks for the input.
I need a complex collision shape to support a rolling vehicle. The more tiles of varying angles at can be combined, the better. I need all those tiles to keep it interesting. The ground shape/collision surface is generated randomly based on certain rules of which tiles can go next to each other. I would use the "terrain" function in stencyl to avoid tiles, but it cannot be generated on the fly. My levels are on the order of 700-1000 tiles wide so variability is important.
Thanks again.

mdotedot

  • Posts: 1649
Hello Blacksmith,

You might want to check the generated game.xml file.
(application data\stencyl\stencylworks\games-generated\name_of_game\game.xml

Inside it you find <collsions>
Copy Paste that information to your new project (But make backups before you do this!!!)

This is 'under the hood' stuff and potential risky, but maybe it can help you in avoiding too much work.

Hopes it helps anyway.

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Thanks for the nice comments :D.

{Mdotedot's} way might work, but i donno. It's better to not screw around with anything inside stencyl.

Almost have this game finished! Just a few more hours left.

I pray, that you find out a way to do this! It would help a lot of people + me :D
I'm 17 years old, here to help and Entertain. {Also to make fun games}
ADAM: (http://www.stencyl.com/game/play/25588)
Also, if you need help making a platformer, search {Jumper} in Stencyl Forge. This is a player with everything you need in it, that i made. Enjoy!

Blacksmith

  • Posts: 142
Mdotedot, thank you for your quick reply and suggestion. Luckily I won't have to go your route.

After closing and opening the game a few times, by complete surprise the missing collision shapes suddenly appeared. I'm not sure how I triggered it to start displaying the information, but maybe it will inspire others to figure it out, or at least be a little patient!

Good luck with your game NoFace. I'll be down to the wire too. Thanks again for your support.