91
Gameplay & Discussion / Re: Post the fangame you just beat!
« on: December 05, 2015, 02:42:47 PM »
Don't worry, the challenge gets better, at least through the stage 3 games. Tribute's a huge pile of shit, though, I'll agree there.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
instance_create(x,y,object)
not instance_create(object,x,y)
Here's a snippet of a basic cannon using alarms: https://klazen.com/gm/QVK
Let me also tell you what's wrong with the code you posted. By default, all alarms start out at 0. Alarms will only trigger if you set them to a value above 0, and then they count down back to 0 later. So, setting alarm[0] to 0 does nothing; the alarm event will never trigger! If you want the alarm to trigger immediately, you can set it to 1.
In your alarm 0 event, you set alarm[1] to 25 three times over, which is unnecessary. The alarm will only trigger once, not three times; that's just how alarms work.
In regards to what Kyir said about emulating alarms yourself, I think which method you use depends on personal preference and context. In one-off objects like this cannon I might prefer to use alarms to keep things simple. In more complex objects, I might prefer to do it manually.
alarm[0]=0;
var i;
for(i = 0; i < 3; i++) {
alarm[1] = 25;
}
alarm[0] = 100;
Hi BaronBlade . I just started playing I wanna go the dotkid, today I reached the first boss, red Miku, the one starring in K3 boss rush.