Help me make my App run better ?
Okay so here is the basic's of what happens.
You tap somewhere to spawn an actor then you drag it somewhere.
You are trying to make steps with the actors to get away from something.
but after a while there could be up-to 100 actors on the scene.
I was wondering if there is anything i could do that would make it run better later in the app ?
Thanks.
JamieOneil
You tap somewhere to spawn an actor then you drag it somewhere.
You are trying to make steps with the actors to get away from something.
but after a while there could be up-to 100 actors on the scene.
I was wondering if there is anything i could do that would make it run better later in the app ?
Thanks.
JamieOneil
Comments
If you can, Unckech movable Option in actors, and Move them with Interpolate.
Watch Cookbook Videos for more details.
Cheers.
I can't recycle.
Because the actors are making steps and there is gravity on them, if i have them change position then the steps will fall. ?
In my experience, if you have a lot of rules in a lot of actors, it can affect performance too. If you're spawning actors and not seeing them again after they have gone off-screen, make sure you destroy them.
I need another way than recycle
- Jeff
make a video why you can't recycle your actors
If i have the actor destroy when it goes out the screen then the steps will fall because the bottom step will be gone.....
Cheers.
But i would need help.
If there are about 20 off the screen, when you tap to move it to your touch position, won't it just move them all ? when i only want it to move one ?
Thanks
JamieOneil
And every time you drag one Stpe, you add a + 1 to it.
Then you have every step with a number.
And if the Wich one Draging is equal to one Step number, then you move that one.
Hope I Explain myself.
cheers.
Then you edit every one on the Scene, And Change That number, and you will have each step with an Unique Number.
Cheers.
_____________________________________________________
I will try that
JamieOneil
Any other ways ?
JamieOneil
Can anyone help?
JamieOneil
1) This is not a game that GS can handle easily. So you may want to put this on the back burner in case GS makes performance improvements later on.
2) If you are determined to make this game right now you are going to need to be creative and make some compromises. For example the taller the stack of blocks gets the more unstable the structure will be and that adds to the challenge of the game. But you may need to have a system where blocks that are far enough down get recycled and replaced by a scene wide nonmoving actor that becomes the "new foundation" for the blocks. This will be tricky - you'll need to figure out the logic and math behind when to recycle and how to exactly move the new foundation in without causing the blocks to fall. Here's another possible compromise. Give the player a set number of blocks to use and be sure that you have tested to figure out how many blocks can be in a scene before the lag becomes noticeable. Then have certain checkpoints throughout the game. When the guy gets to a check point the blocks disappear, a new starting point appears, and you start going up again. This will keep your block count at a reasonable number.
But i have thought of a way to recycle, you helped me with it in my last post.
So i think i can make it run better now.
JamieOneil
Lump Apps and My Assets