lennaert's Recent Forum Activity

  • Hello,

    I exported a Construct 2 game to HTML 5 and uploaded it to a personal server. I noticed all of the images are publicly accessible in http://<game web address>/images.

    How can I setup the images where only the game can access them?

    Thanks,

    K

    You can set this up your hosting, if supported.

    Or you could add a htaccess file with the right entries to prevent direct folder access.

  • Just adapt your exported index.html file wisely

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Did you start the preview in cs2 ?

  • No problems, I do.

    Im not sure, I dont see the benefit in it apart from good organising.

    generally, the images dont slow your processing at run time, it just takes longer to load. There must be something thats slowing your active performance. Perhaps double check up on the events of the animation.

    you could try and start with the debugger, and see whats happening, .. perhaps you see something thats a miss.

  • I wouldnt mind having a glance at your capx to look for bottlenecks

  • Check your events which run every tick.

    In a lot of situations a slight impropper use of a loop functions slows everything a lot.

    these events have this green circled arrow before them.

    They are events which run continously.

  • Hello lennaert,

    Sorry to bug you again, but that crashing issue is appearing again. I have inserted all my images in the loader screen and destroying them on the 'On start of layout'. But still, my game is crashing. I have 15 images with 1920x1080p resolution. What else can I do ??

    Make a sepperte layout, called objectslayout, and place all your images there.

    And dont destroy them.

    The objectslayout never gets adressed, its just a container/placeholder for your images. Dont destroy them.

  • oh, it stays :o I didnt know that

    Here is a page with reference about memory leaks from javascript, not sure one of the suggestions/solutions work, but perhaps good reading for what your looking in to.

    tut memory leaks javascript

  • ^_^    figured as much

    Great btw on that performance boost :)

    Will make it playable on a lot more devices.

  • Sweeeeeeeet :D

    *assimilates*

  • Did you create/spawn them on the correct layer ?

    If you spawn them on the wrong layer with a different scaling, then it will be out of place.

  • Removing the canvas element doesn't remove all the memory allocations made by the game engine in Javascript. It's designed to be used in an iframe, there's no good way to clean up the whole engine otherwise.

    I think he means, from a webpage where he included a cs2 program, where I mention stuffing it in your own iframe and calling the index.html file of your game.

    Wouldnt loading another page in that iframe clear up the memory used by the cs2 program ? (it should, otherwise browsers be clogging up everywhere)

lennaert's avatar

lennaert

Early Adopter

Member since 8 Oct, 2013

Twitter
lennaert has 13 followers

Connect with lennaert

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

25/44
How to earn trophies