Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → The COG freezes the game after...
The COG freezes the game after...
2004-10-01, 8:07 AM #1
a minute... Why?

Code:
# Wall scrolling
#
# By Edward
flags=0x240
symbols

message		startup
message		pulse

surface		wall0
surface		wall1
surface		wall2
surface		wall3
surface		wall4
surface		wall5
surface		wall6
surface		wall7
surface		wall8
surface		wall9
surface		wall10
surface		wall11
surface		wall12
surface		wall13
surface		wall14
surface		wall15
surface		wall16
surface		wall17
surface		wall18
surface		wall19
surface		wall20
surface		wall21
surface		wall22
surface		wall23
surface		wall24
surface		wall25

flex		y=0		local
flex		x=.1		local
flex		z=10		local
int		animid0		local
int		animid1		local
int		animid2		local
int		animid3		local
int		animid4		local
int		animid5		local
int		animid6		local
int		animid7		local
int		animid8		local
int		animid9		local
int		animid10	local
int		animid11	local
int		animid12	local
int		animid13	local
int		animid14	local
int		animid15	local
int		animid16	local
int		animid17	local
int		animid18	local
int		animid19	local
int		animid20	local
int		i		local

end
#
code
startup:
	for(i=0; i<=25; i=i+1)
	{
		animid0=SlideSurface(wall0, VectorSet(0,-z,y), 1);
	}
	SetPulse(0.1);
return;
pulse:
	y=y+x;
	if(y>1) x=-.1;
	if(y<-1) x=.1;
	for(i=0; i<=25; i=i+1)
	{
		StopAnim(animid0);
		animid0=SlideSurface(wall0, VectorSet(0,-z,y), 1);
	}
return;
end
Edward's Cognative Hazards
2004-10-01, 2:51 PM #2
You have less than 25 animid's, yet your code calls upon 25. You're cog might be trying to access unassigned memory, and therefor causing a problem due to it. It's the only thing that seems directly incorrect. Some of the other things you did look odd, but not errors.
_ _ _____________ _ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
2004-10-01, 2:57 PM #3
But of Carse! Thank you!
Edward's Cognative Hazards

↑ Up to the top!