Games Achievements My Kong Sign In

azhrak's messages

Public messages for azhrak

avatar for WindDragonLord
WindDragonLord

Jun 21, 2012 4:12pm

azhrak, you’d probably want to add a var that goes up one each time an enemy is killed. You can set it so that each time you get to a certain number they spawn faster. EX:
In Ship Class:
var speedUp;
function onLoad
{
speedUp=0;
}
So then you go tow wherever the enemy spawn timer is, which I’m pretty sure is still Ship. I’m gonna call the …

show more
avatar for WindDragonLord
WindDragonLord Jun 21, 2012 4:15pm

Sorry bout that.
CONT. →
Ship.speedUp+=1
}
Then go back to Ship.

function onEnterFrame()
{
if(speedUp==25)
{
spawnTimer=8;
}
}

I haven’t tested this, it was just a way I thought it’d work. If it doesn’t, you probably just need to adjust it a bit.

show more
Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms of Service Privacy Policy Code of Conduct
© 2025 Kongregate