[Stencyl 3.5/4.0.x] Away3D Extension

NerdinaNutshell

  • *
  • Posts: 232
Split-screen is not something that I've been looking at.  For a puzzle game it should be no problem, but when you want kind of like what GTA5 is doing I wouldn't know how to do that.
Oh, that's a bummer. Oh well
*Puff*

NerdinaNutshell

  • *
  • Posts: 232
One of the things I've noticed with the extension is that it's quite finicky with which textures in the extras folder it will actually load. For me, it will load the first few textures I add-in fine and then it feels like complete luck for the rest.
*Puff*

mdotedot

  • Posts: 1574
Propably the textures are not a power of two and/or too large.
Running to HTML5 and opening the browser console mostly give good messages on what is wrong.
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.

NerdinaNutshell

  • *
  • Posts: 232
Any plans to bring this to 4.0.2+? Doesn't seem to work in it as of now.
*Puff*

mdotedot

  • Posts: 1574
Hi NerdinaNutshell,

On the download page there is now a 4.0.2 version of the extension.

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.

NerdinaNutshell

  • *
  • Posts: 232
Download button for 4.0.2 is not working as of now. Also, the downloaded: X times text just copies the 3.5 download one. (Found a workaround, you can inspect element the download button and then you should see the downloadable file in the code).

« Last Edit: February 01, 2020, 01:46:16 pm by NerdinaNutshell »
*Puff*

NerdinaNutshell

  • *
  • Posts: 232
Do you know if it's possible to get the name of an object that a tile is bound to? And more importantly, delete it?
*Puff*

mdotedot

  • Posts: 1574
Another way of ' binding ' meshes to tiles:


when using the [ 3D: Bind TileSetID ] you have the limitation of 32px usage and you need to modify the Bind.hx in the extension to make them accessible.

Around line 390 in that file:


Code: [Select]
// set scale
scaleMesh(newMesh,getTileHeight());

Add this below those lines:
Code: [Select]
// Add to Meshes (For NerdinaNutShell)
A3D.setObject(newMesh.name, newMesh);



Then you can access the tile by this name : TILE.tsid.id.row.col.

Like so:




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.

NerdinaNutshell

  • *
  • Posts: 232
The code you posted above doesn't seem to work. I copied everything exactly how you said to and didn't work. Alt tile binding just doesn't work and attempting to remove the tiles just crashes. Are you on a different version and maybe that could be causing issues?
*Puff*

mdotedot

  • Posts: 1574

Away3D extension with the bind code change:
Stencyl 4.0.2 Extension with Bind change

Demo (Don't do anything and wait 10 seconds to get the tiles removed) . Check the code in 3DLevelBehavior
Demo






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.