Screwed Over For Halloween Comp.

Posted by Siert on Oct. 31, 2008, 10:31 p.m.

Well, I was going to enter the Halloween comp, and could have finished tonight, but I've been stopped by a memory leak. I know where and what it is, but don't know how to fix it.

fixed!

if x>objCharacter.x{

for(xx=x; xx<room_width; xx+=1){

if !place_free(xx,y)

return xx}}

The red is what causes the game to freeze, I'm guessing it just checks to many times for Game Maker to handler.

So, my entry has been stopped, I'll probably figure it out tomorrow, oh well…

Good day and good night… zzz …

Comments

Nighthawk 16 years ago

I can't tell what the problem is, maybe because the way I program isn't as compact as that. Wish I could help. My entry isn't finished yet, so I'm HOPING marbs accepts unfinished entries.

Acid 16 years ago

My entry got corrupted, don't feel bad.

KaBob799 16 years ago

My entry didn't get past early programming stage, farther than usual though =p

SteveKB 16 years ago

I just finished on time yay! or at least midnight from where I liveszors! I'm kinda sad the mini-boss didn't make it though…but it's still an awesome game >:D

[deleted user] 16 years ago

It freezes because xx is always going to be x unless you change it, unless you've made a typo here. It will keep checking to see if xx has become less than room width, but since you arent changing it at all, it'll always stay the same.

Change x+=1 to xx+=1

Siert 16 years ago

Hey! That's my problem. I have to learn to type better.

Leyenda 16 years ago

Yep, memory leak alright. In brain. I love how you blame GM.

Alert Games 16 years ago

Sometimes it is GM. GM isnt the most reliable.

i didnt have time to work on my comp entry v_v

Leyenda 16 years ago

Quote:
GM isnt the most reliable.
bullshit. Im not big GM user cause its too slow. But only noobs blame GM for their bad coding.

Learn to code before you blame language.

Siert 16 years ago

I did blame myself, lay off.