SupremeRobot's Recent Forum Activity

  • UPDATE: Solved. See first post.

  • file did not attach so here is a link. https://drive.google.com/file/d/0B4SRJc ... sp=sharing

  • I am attaching the capx.

    I have added the M key zoom in and out so you can see the map.

    It is fine in c2 but on the web and in node it seems to happen every third time or so.

    it must have something to do with how the map is generated, but it makes no sense that it only happens after export. Did not use third party plugins.

    i made the randome dungeon based on this tutorial : http://bigbadwofl.me/random-dungeon-generator/

    There are a list of global variables so you can change the room number. Map size is linked to layout size

  • same problem with Node Webkit.

  • will do

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi there!

    I am busy testing out C2. I bought the personal version after making a simple game with the free version and now I am trying to step it up.

    I am working on a game with a procedural dungeon. The basic problem in a nutshell is that when I run the game in C2 it works fine. When I export it to html it gets all crazy.

    Like instead of sticking to the array, grid and the rules that I developed like this:

    or this

    It's goes a little nuts like this:

    The only difference is running it in C2 or exporting it as HTML5 and running it.

    It still seems to be following the rules, but making all arrays involved bigger which in turn makes the dungeon crazy.

    I have one array that is the grid the maze is laid out on. usually 80,80,2 the second layer of depth stores information about what kind of tiles lie next to a tile so I can tell where there are corners or entrances to rooms and such.

    I have another array that stores the dimensions and coordinates of the rooms. The array is 2,2,(number of rooms) The example you see has twenty.

    Here is the game in html format.

    http://supremerobot.com/games/cthulu/

    Is there a know issue with arrays? I can't find anything online. Should I post this as a bug, or am I missing something?

    PS, this was made for a gameboy style game jam which is why it is all green.

    EDIT - I fixed it. It is a weird thing though in that it doesn't happen on export as long as I define and clear the arrays explicitly at the start of the layout. I don't know why it fixes the problem, but one cannot always look a gift horse in the mouth. Maybe something was writing to or reusing some specific memory address/ i don't really know.

SupremeRobot's avatar

SupremeRobot

Member since 24 Jul, 2014

None one is following SupremeRobot yet!

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies