Invisible tiles?

PiggyTheAstro

  • Posts: 21
Basically I'm making a game that spawns very large amounts of tiles but what happens is that they are invisible. Here's a screenshot of the game without the background and anything else, just the player and the tiles. http://prntscr.com/nywozf  You can see that the first row is filled but the other ones aren't even though they collide with the player. That doesn't happen if I place tiles with the scene editor but then the collision shapes are missing instead.

PiggyTheAstro

  • Posts: 21
Still doesnt work

JeffreyDriver

  • Posts: 2100
Can you post the .stencyl file?
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

NerdinaNutshell

  • *
  • Posts: 178
I'm confused. Are there multiple layers? Are you trying to put the player inside tiles with collision? You should probably post code too
Plot Twist... I'm a ghost

PiggyTheAstro

  • Posts: 21
Alright, some more detail. I made a scene behaviour that procedurally generate a dungeon, it would carve out the rooms so that that would not overlap. When I filled the scene with tiles using the scene editor it woker perfectly but the hitboxes of the tiles were missing, which meant that the player could walk through them. So I kept the code intact, removed the scene editor tiles and made a behaviour that would fill the scene with tiles at the start of the scene. It works, but the tiles are invisible, the player can't walk through them but they are not displayed on the screen.

Code:
When created:
http://prntscr.com/o2g8rf

Carving out part 1:
http://prntscr.com/o2g8xy

Carving out part 2:
http://prntscr.com/o2g91m

Also, the tiles are on the same layer.

JeffreyDriver

  • Posts: 2100
Are you sure the tileset and tile id are correct?
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

PiggyTheAstro

  • Posts: 21
Yes, and as I said, the collision boxes of the tiles are there so the player can't walk through them, theyre invisible though

JeffreyDriver

  • Posts: 2100
It would be helpful to see the .stencyl file.
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

PiggyTheAstro

  • Posts: 21
How can I post the file?

PiggyTheAstro

  • Posts: 21
How do you insert the stencyl file into a post?

JeffreyDriver

  • Posts: 2100
CLick reply and you get the option to upload a file.
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

PiggyTheAstro

  • Posts: 21
Can't do that since game is too large. (campaign and items take make the game take up around 15MB. Endless mode is what I'm having problems with and I started developing it quite recently.

JeffreyDriver

  • Posts: 2100
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk


PiggyTheAstro

  • Posts: 21