Is this possible?

My new game is based around one, massive scene. My background images will be tiled, but other actors with images wont be, so in order to conserve performance and load speeds, is there anyway to make an actor load its image only when it is close to the main character/camera? So rather than load everything during the scene transition, can I have actors load their images when close to the camera? If not, has anyone got any ideas for workarounds to maximise performance for loading a really, massive scene?

Thanks!

Best Answer

  • AfterBurnettAfterBurnett Posts: 3,474
    Accepted Answer
    Spawning them would be a good idea, since they are not the kind of actors that are used often and quickly, like bullets, right? Probably the easiest way.

Answers

  • dr2391dr2391 PRO Posts: 78
    edited February 2013
    I'm not sure if this is what your asking but just create a spawn actor and use the spawn behavior to spawn your actors whenever you want

    Also do a search for recycling actors if you need to spawn alot of actors to save on performance
  • adambowker98adambowker98 Member Posts: 57
    edited February 2013
    You could just have the background image around the start point of the game and then make it a non-scrollable layer, rather than tiling it across the whole game.
  • iCreationZiCreationZ Member Posts: 158
    Spawning/recycling actors is one option... I'll look into it @dr2391!

    @adambowker98 a non scrolling actor would be so much easier, but sadly my game needs a scrollable background. It's a top down rpg type game, so they'll be a variety of textures that'll need loading, hence my looking for a clever workaround! ;)
  • aarioaario Member, PRO Posts: 256
    Im not 100% sure if this would work or not but you could try making your actor have no image initially and have the load image button unchecked then when your character gets within a certain distance of the actor you use a change attribute behaviour to change the actors image.
Sign In or Register to comment.