Sprite not rendering in HTML build ( SOLVED)

Hello,

So i have a sprite with my its own material, I just copy and paste the standard sprite settings i just give it its own tag called alien.

Its works when i normal build in the engine, but its not showing in the HTML build.
tested in 2 webbrowers.

i have a ziped test version where it only has the sprite and matarial

I shared it in discord

I recommend sharing the example here, as discord isn’t persistent (nor the official channel of support)

Can you tell me how, its not allouwing me to upload 7zip

Try uploading a .zip instead?

HTML sprite test.zip (1.4 MB)
YEh that worked :open_mouth:

The project you provided uses the default render script that has no predicate for “alien”. In the sprite material you create you applied a tag “alien” which will not be rendered. To learn more about predicates and the rendering pipline you can look here:
(take a look at the tags section)

render predicates allow us to control draw order in the renderscript and material tags are a way to tell the renderscript to use a specified predicate.

1 Like

Hello Mastermind,

I believe i have done that,

Made a material with the tag alien,
added the alien tag in de predicate


and order it to drawn after the particals
(this is working in my main project as i shared ealier)
image

That is also working in normal building it. only when HTML building it it wont show up at all.

Have you copied the renderscript from the built-ins and pasted it into your project? Or are you trying to make direct changes to the default render script? if so your changes will not be saved from files in the built-ins, you would need to copy /paste them first into your project then apply the new renderscript/render to the game.project. In the file you provided the renderscript you are showing is not applied.

Here is your project with a custom render & renderscript.
testhtml_sprite.zip (31.9 KB)

You can take a look at the game.properties > Bootstrap > Render where the alien.render is applied and the alien.renderscript.

1 Like

Thanks MasterMind yeh i dith this change in the standard render script now i know what to do :smiley:

1 Like