Stupid game!!! grrrr

Posted by Omegasonic on Sept. 5, 2006, 11:59 a.m.

Well a few days ago i loaded up my gamemaker WIP ,that worked perfectly well the last time i loaded it up, and found that now anything with more than one hit explodes on creation!

Perhaps gamemaker is trying to wind me up >:(

Anyway if anybody could perhaps help me with this problem here is the events i have for my enemies.

create event:

CODE

hits=2

step event (d+d): if hits is equal to 0

destroy the instance

collision with Player1:

CODE

if other.vspeed>0 && y>other.y-8

{

hits-=1

other.vspeed=-10

}

else

{

sleep(1000)

show_message('You died!')

lives-=1

room_restart()

}

If not i'll have to work my levels around not having more than one hit on enemies :(

Comments

noshenim 18 years, 2 months ago

change the sleep to 10.

that won't fix it but…

post a executable or editable example please.

Omegasonic 18 years, 2 months ago

kk, i'm a bit of a newb to 64digits so how would i go about uploading an executable file?

marbs 18 years, 2 months ago

well, to make an executable in gamemaker go to file > create executable, and then save it where ever you want. To upload it go onto 64D and at the top left there is a thing saying file manager. Open up that link, scroll to the bottom, click any of the browse buttons. Then find your file and select open. Then, click upload. Onces it's uploaded the page will refresh. Then scroll to the file you uploaded, right click on the link, select properties, and copy the address next to where it says address. Then paste it in here like this < a href="link goes here">DOWNLOAD< /a > but without the spaces.

noshenim 18 years, 2 months ago

.zip the executable.

Omegasonic 18 years, 2 months ago
noshenim 18 years, 2 months ago

wtf that is so simple, look in the step event!

or change it to code:

if(hits<=0)
    {
    score+=3;
    instance_destroy();
    }

LOL LOL LOL LMAO LMFAO LOL ROFL

Omegasonic 18 years, 2 months ago

i don't see whats so funny? but it works like that thanks.

marbs 18 years, 2 months ago

Quote:
.zip the executable.
>.< I knew I forgot something

Omegasonic 18 years, 2 months ago

Thanks for all your help guys, not only did i fix my game i learnt how to upload downloads to 64digits :D lol