Automated Terrain Collisions
Manto
Member Posts: 796
Here's a video of terrain collisions I've been working on:
Website link:
http://mantuapps.com/gs/ce/
Link to the project file:
https://www.dropbox.com/s/j0jxqw5jsbwo83z/GS Terrain v4.gameproj.zip?dl=0
How to use:
1. Upload an image to the website http://mantuapps.com/gs/ce/
2. The image is analysed and a .csv file is created
3. Import the .csv file to the table in GS Terrain project
4. Choose a value for game.modifier. The value defines the precision of the terrain. The lower the more actors and the better collisions, but also increased RAM & CPU usage.
Let me know what you think. Is it useful for you? Do you think something should be done differently?
Comments
Awesome! nice work.
Amazing job
Absolutely useful
That is absolutely awesome. I would completely love to have a play around with this.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Manto1 super cool stuff!
Really nice!
Fortuna Infortuna Forti Una
This is beyond words -- it's fabulous. It's so amazing, in fact, that awarded you a very nice badge. : )
Thanks for sharing, and I would love to tinker with it, too!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
......... That is .... AWESOME!
Realy cool!
Definitely useful! Cant wait to play around with it.
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Typical off-the-scale genius from Mantou !! Like his other stuff not just clever but genuinely useful, I still think the kinds of tools that Mantou creates (game creation tools) are what GS should have been working on for years rather than tweet sheets and more ad networks.
@Socks is absolutely right. What @Manto1 does is take GameSalad and extend it to overcome its limitations, and always with impressive results Great stuff!
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Love this!
Wow. Didn't expect so many people to find it useful. Thanks for letting me know!
I've now added the links.
Thanks for the badge!
Wow, that is really impressive!
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Great stuff! Thanks for sharing!
Twitter:rondorocket
Web: rondorocket.com
Nice, seems pretty useful.
Follow us: Twitter - Website
I can't get the online CSV generator to work, I've uploaded an image (I even stuck to the default PND included in the project) but after I've selected my image, and hit 'choose' nothing happens, I just return to the main page, with my selected image title now on right of the 'choose file' button . . . . ?
Am I being stupid ?
Wow. the things you've made possible... Could I upload a triangle shape and would it work? Thanks dude.
OMG
I had the same problem uploading a file... But I can see how this stuff will be amazing! Great job! Hope it works soon so we can test it Now, you mentioned that it can be expensive so I have one question: Does it differentiate between curved surfaces and straight ones? For example, if I have an image with lots of undulations on the left half and a straight horizontal line on the right half, do I get fewer collision points from the right hand side of the image? If no, is it difficult to add?
I noticed this did not work for me in Safari had to use Google Chrome.
Thanks all. Would be nice to see what you can do with it. Maybe post here when you have something to show?
@Socks Are you using Safari? It seems that it doesn't work on it like BBEnk said. I'll try to find a way to fix it, but for now you'll have to use Chrome.
Thank you! Only the upper part of the triangle would have collisions. I could try adding collisions all around the image, but that's much more difficult.
At the moment no. What the game.modifier does is it tells every how many pixels it adds a collision line actor. So if it's 10, it adds a new actor every 10 pixels. But yes, it could be a feature in the future.
Thanks for the answer. This feature would be amazing for my project! I have some areas that need lots of collision points and very large areas that are completely flat. With this tool I could make the collision really accurate. If you make the tool read flat areas as one collision actor then this could be really efficient as well
I downloaded the csv and imported it into GameSalad - however, the collisions are way off to the image I uploaded - it was the orange landscape image that came in your file, @Manto1 - Any suggestions?
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Change game.modifier to 10?
If you press 5 it should show the actors for collision. 5 didnt work for me so changed the rule to space. Then you also have to move the image so it fits inside the collision actors.
It works great for me @manto1 thanks for sharing!!
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Hmm, I think I have an idea for it. I'll try it later.
Another solution might be using a "streamed collision line system". I use it myself in a Hill Climb Racing style project. The lines are moved when the player goes past them. So there's only 54 collision line actors, even though the scene is over 12000 pixels wide.
Are the collision lines looking similar to the terrain? Can you send a screenshot?
You can press 'S' to show the lines.
Mate ,that is insane use of Gamesalad
I updated the site. It should now be easier to use. The modifier is set on the website instead of the project. You can now see how the collision lines will be spawned right on the website.
You'll need to use a new project with it, you can download it here: https://www.dropbox.com/s/h5f6ux6uucgmil4/GS Terrain v5 Release.zip?dl=0
It's still not working on safari.
Thanks
Thank you for sharing ☺️
Big Smile Games Play Happy!
Check out our other GameSalad exclusives.
Very impressive and thank you for sharing it.
Universal Binary Template - Universal Binary Template Instructions Rev 4 (Short) - Custom Score Display Template
I see only a few people have used the website. Would you prefer to have a standalone application?
Yeah ! The website thing never worked for me : (