HTML5 + Collisions Problems
I'm having an issue with a game where, when played using the HTML5 preview (in a browser) or a published HTML5 version, a lot of actors just ignore their collision shapes.
I initially had custom collision shapes in both the rocket and the asteroids it needs to weave around, and it works as expected on Mac. On HTML5, one or both of these two actors will just have a rectangular collision shape.
After finding the problem with HTML5, I reverted the asteroids from a custom shape to a circle, hoping that would sidestep the problem. They still end up in the game with a rectangular collision shape.
It doesn't always happen, so I figured it was something in my logic, but there seems to be no amount of stripping back of the project that will make it conistently stop. Sometimes it works on the first asteroids to spawn, and then doesn't on the rest. Sometimes it doesn't work on any of them. The exact same actor will have a circle collision shape one moment, then the next one spawned will be a rectangle.
I thought maybe too much was happening at once and I should cut things back, but that didn't make any difference either.
Pulling my hair out here. Any thoughts @adent42 ?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Comments
yeah @Armelline , seeing the same thing, they just ignore the collisions...because of this bug I have a character walking over lava like it was a water puddle, instead of frying him LOL (but after the first round of actors are spawned collisions seem to work again)
GameSalad Templates and Custom Development at the Official Marketplace: http://gshelper.com
Glad it's not just me! I spent all day trying to figure out if it was something I'd done!
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Hi,in my opinion HTML5 does not perform as well as the creator or as the games that run on Apple devices. sometimes I notice slowdowns or something doesn't go exactly as it should...
so I think there is a slight drop in power in html5 now specifically I don't remember exactly what was wrong in one of my games but if I'm not mistaken maybe it was the collision that didn't it was perfect among the objects as in your case.
✮My Web Site✮ ✮My Full Games On Sale✮ ✮Follow Me✮ ✮My Video Channel✮ ✮Contact Me To Buy My GS Games✮
Looks like I'll be working around it for this project as the deadline is only a couple of days away. Hope it gets fixed though, makes HTML5 largely unusable.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
games in Html5 are less efficient than what you see directly in the creator and sometimes there are small bugs:
the game that loads in phases sees game pieces that appear at different times and not quickly; or transparencies that do not behave as they should or fonts that are not seen as well as in the creator, collisions that do not work as in your case.
I've already said in other posts here on the forum that I would like a html5 egine boost, because I noticed small slowdowns etc...etc.. let's hope for a fix for your problem and a general boost.
I would add that now all my business is almost in HTML5, at least 70% comes from HTML5 publishing with advertising and the remaining 30% comes from the classics of Apple and Google.
So please Improve/fix html5 games export.
✮My Web Site✮ ✮My Full Games On Sale✮ ✮Follow Me✮ ✮My Video Channel✮ ✮Contact Me To Buy My GS Games✮
This is far from the only severe bug in the HTML5 engine, apparently. I'm not taking any more HTML5 based GS work until the engine sees some major improvements. This project has been a nightmare.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Armelline could you DM me your project link so we can take a look when we have some time?
I did a loooot of hacking away at things to sidestep the two biggest issues I was having (for example, making the asteroids invisible smaller squares and overlaying an image over the top to err on the side of crashes not happening when they should rather than happening when they shouldn't) so the project file isn't the best example any more. I'll try to put together a project that reproduces the issue, or see if I can find a saved version from before I implemented the workarounds.
Thanks!
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support