Rts Spawns remap?

For questions about using Classic.

Post » Thu Jan 27, 2011 11:58 pm

I'm getting some slow down when a newly created instance with the RTS behavior is spawned.
So I was wondering if any one knew if its from the instance regenerating its own map, or if its possibly from the turret behavior adding targets?
Keep in mind it only happens when I have many instances already created (25-50).
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Fri Jan 28, 2011 1:01 am

I had this problem, so I created an event so my objects were only checking their path every 150ms (not all at the same time, that caused lag, I gave it a variable to countdown for the next "move to")
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Sat Jan 29, 2011 2:24 am

That kind of depends on how your doing your movements.
In my case they are given a set amount of time to reach their destination before their told to move again.
But that's not really what I was worried about, I was getting lag when I created a new instance, and my theory was that that creating an obstacle map was causing the lag.

Actually what I've found is that using the "Solid" attribute for the map was really what was slowing it down.
Just adding the object as an obstacle works much, much better.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests