|
Post by Lankyrie on May 20, 2004 2:31:41 GMT -5
Yeah, I'm making game which have HP bar for hero. When I put this: Fork Conditions: Hero's HP is 20 -Show Picture: Herohp20 Fork Conditions: Hero's HP is 19 -Show Picture: Herohp19 And it's slowing the game. What I have to do?
|
|
|
Post by Busterman Zero on May 20, 2004 8:56:43 GMT -5
Don't have so much stuff open when you play it.
|
|
|
Post by Magi on May 20, 2004 9:27:25 GMT -5
That's one solution, but the reason of this is because if you solely use the "Show Picture" command, it will execute that file as quickly as it executes the script. Think about what would happen if a large image file is called upon as fast as your code. What that will do is create a lot of lag, and usually is what causes lag in any CBS.
The solution: Use a combination of show and move picture.
Frk Cndn: HP is 20 -Show Pic HP20 -Cycle -Move Pic 20 0.1 seconds (Don't choose halt other processes) -Frk Cndn: HP is not 20 -Break out of cycle -/End Cycle
The method above is one of the few cases where a cycle is better to use than a fork condition because it saves some coding. This is only one method of doing it, and probably isn't the best, but it will serve its purpose and should remove the lag. If it still persists, you may want to use labels, which will require a small extra bit of coding.
|
|
|
Post by Lankyrie on May 20, 2004 23:01:46 GMT -5
I didn't work either. Now when I fixed that away, whole game freezes when I test play it. Don't know where is the problem, start position isn't at invalid terrain, hero party is set, and etc.
|
|
|
Post by SickAndWretched on May 23, 2004 14:25:28 GMT -5
its your chipset.. make sure that all your chips at set to terrian that exists
|
|