HUGE layout sizes ..and the damage done

0 favourites
  • 13 posts
From the Asset Store
A versatile and wide-ranging selection of large to medium-sized creature sounds.
  • Is there a size that basically isnt good?

    In my game i have this system locking freeze for about 5 seconds just before my layout .

    Its x5000, y10000

    Im assuming this is the problem as my codes very tidy (for me )

    My solution is to load a chunk (1000,1000) at the start , then expand it in the background till its that size

    Its not letting me use "else"    [|) as in if playernum = ainum print "you win" else print "you loose"

  • The layout size shouldn't be a problem, but if you have a sprite that size please consider that it will take 5000x10000x4 = 200000000 bytes of memory. that's about 200 Mb if I'm correct.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, does that include stuff that is "stretched to fit" and tiles ?

  • No, the size a sprite takes in memory is "widthxheightx4 bytes" of the sprite in your image-editor.

  • Hmmm cant be that then, has to be the path finding , that seem to hit things pretty hard

  • One more thing, i have a little dice ( text) mini game.

    Im struggling to store my input number (between 1 and 6) into a variable (to compare with the ai's) all i can find is "keyboard code", but i just need to compare the number.

    Im sure there an easy solution

    Its not letting me use "else"    [|) as in if playernum = ainum print "you win" else print "you loose"

  • Like this?

    <img src="https://dl.dropboxusercontent.com/u/48563442/YouWinYouLoose.jpg" border="0" />

  • Hmmm cant be that then, has to be the path finding , that seem to hit things pretty hardOh yeah, you should have mentioned that you used pathfinding in the first place. It has to generate the obstacle map when the layout starts. On such a big layout it can be long indeed. Did you try changing the size of map cells? the smaller they are, the more accurate the pathfinding will be, but the longer it will take to generate the map and to calculate path

  • Nope, i want to write the variable with my keyboard input... then compare..

    So i type 3 and the variable is changed, cant seem to work it out on here.

  • keyboard on key pressed 3 - set variable to 3

  • Ill have a look and see if i can get bigger cells that work as nicely

    thanks

  • thanks so much lol, thats so easy , i cant believe how it got me ...doh

  • Had one of my enemies set to 0 (infinity?) cell size :\

    ALOT better now its set to 30 !

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)