The Daily Click ::. Forums ::. Klik Coding Help ::. Strange and random fastloop hiccups
 

Post Reply  Post Oekaki 
 

Posted By Message

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
9th September, 2006 at 19:38:26 -

I'm working on this platform shooter type game with intelegent bots. I've made a post about this on the boards not long ago. So my problem is that the bot's fastloop (which moves the bot) hiccups every now and then. I'm not sure why.

I've placed two counters and made them always increment by 1. The top counter has its increment command in an always command, and the bottom counter has its increment in the bot's behaviour's first line of code (which is a fastloop). You'll notice that after a while the bot's position will suddenly freez and then goes. This is reflected in that the counter which is coded with the fastloop drops below the value of the other counter which is coded in an always command. Btw, the fastloop in the counter is in is executed by an always command for 1 loop.

Here's the downloadable cca file.

http://www.zixiao.info/blazing_gunforce2.cca

Any help would be appreciated it. Also, don't steal sprites cause its mean.

thanks,

Zi-Xiao

 
n/a

deadeye



Registered
  22/07/2006
Points
  73
10th September, 2006 at 00:59:55 -

Well, I've run it a few times and watched the bot jump around for a couple minutes each time, and honestly I don't notice any hiccup at all. It runs smoothly the whole time. Granted, I'm looking at it in MMF2, so that might be why.

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
10th September, 2006 at 05:38:40 -

I think someone wrote an article about it. I think fastloops skip like every 65 000 loop or something. DC search it/ask on CT forums.

 
n/a

Reno



Registered
  11/01/2005
Points
  906
10th September, 2006 at 22:00:12 -

Someone wrote an article about the lines of code skipping and I wroe one about fastloop skipping. I didn't get much credit for mine even though his was compleatly diffrent

http://create-games.com/article.asp?id=1617

 
Reborn Again

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
12th September, 2006 at 17:00:15 -

I figured it out. For somereason whenver player1's nudge_left or nudge_right loops (which are executed for wall collision detection) were executed, all player2's loops would start to hiccup. Strange.

Zi-Xiao

 
n/a

Reno



Registered
  11/01/2005
Points
  906
12th September, 2006 at 17:10:58 -

Image

 
Reborn Again

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
12th September, 2006 at 17:12:38 -

You're a brat.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
   

Post Reply



 



Advertisement

Worth A Click