Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Metroids
#11
Just found a bug. (why do I always find bugs in my own codes just after I released them)

When the no highscore bug is reproduced an error will occour.

Solution:
Replace the code in game flow's alarm 0 with this:
    GML-Code:
if instance_exists(0){
var xx,yy,control;
control = true
 
while(control){
xx = random(room_width)
yy = random(room_height)
switch(floor(random(4))){
case 0:
if point_distance(xx,yy,(0).x,(0).y)>120{
instance_create(x,y,1)
control = false
}
break
case 1:
if point_distance(xx,yy,(0).x,(0).y)>120{
instance_create(x,y,1)
control = false
}
break
case 2:
if point_distance(xx,yy,(0).x,(0).y)>120{
instance_create(x,y,4)
control = false
}
break
case 3:
if point_distance(xx,yy,(0).x,(0).y)>120{
instance_create(x,y,5)
control = false
}
break
}
}
 
alarm[0] = 300
}

Then delete all meteors player collision event and place their alarm 0 actions in game flows alarm1(you need to create one).
And in game flows step event add this:
    GML-Code:
if instance_exists(0) = false{
if alarm[1] = -1{
alarm[1] = 30
}
}


Also in ships collision with the meteors delete the destroy game flow action.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by:
#12
or i simply fix the other bug :P
i prefer fixing the other bug, but not today.

highscore still 38.
Reply
Thanks given by:
#13
38? pewh... what about... 45!
[Image: y00.png]
Reply
Thanks given by:
#14
BUMP
fixed that little bug. go redownloading^^

@nave: Pride goes before a fall :P
Reply
Thanks given by:
#15
Wondering why you allowed F1 as nothings in there. Whatever.

New highscore: 37.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by:
#16
update, now there is game information :P
(put it in the wrong file before :D )
Reply
Thanks given by:
#17
Finally, this took forever:
[Image: finnaly.th.jpg]

80.

Edit: Made a little application for reseting highscores. If im allowed to ill put it here.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by: Bamboori
#18
seems that you really had nothing to do :P

my hs is 39 :D
Reply
Thanks given by:
#19
No just used F5:D
It ended up imposibble anyway when the screen was swarming by meteors.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by:
#20
new hs (with abusion of f5 and f6 :P ) : 114
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)