Page 1 of 1

Ge Crash Problem

PostPosted: Wed Jun 22, 2011 7:17 am
by tzoli
Hi.I have a big problem.
I'm making a strategy game.
In the battle if I send the all peasnts(type of unit) in the enemy lines the Ge crashes.
Can you fix it?
Controls:
0,1(Select Army 0-Peasants,1-Town Watch)
Numpad:
4-Left
5-Down
6-Right
8-Up

Re: Ge Crash Problem

PostPosted: Fri Jun 24, 2011 10:31 pm
by rykein
thats pretty wierd. you can stop it by removing a collision event or some code triggered by the collide in draw but it goes further than that. im too tired to go further but ill keep lookin.

Re: Ge Crash Problem

PostPosted: Fri Jun 24, 2011 11:03 pm
by DST
i can tell you two things:

1. If you march them in slowly, so only four are fighting at once, it crashes less often, which points to
2. Timers and filled region actors are not the way to create this battle you're making.

Neither of those elements are meant to be used that way, and the crashing probably won't go away as long as you're using them.

If you remove >createactor>createactor>parazstut from the parazs and landszaz events, the game doesn't crash ever. OF course no one dies, but they fight without crashing.

Filled region/timer is the problem.

Timers aren't good for immediate, constant actions. Timers are good for screen fades, music cues, etc.

If you want a fast timer, use an actor variable

Actor>draw actor>
variable++;
if(variable==10){
do this;
variable=0;
}

Or something like that.

Re: Ge Crash Problem

PostPosted: Tue Jun 28, 2011 8:46 am
by tzoli
Thanks :D