RE: Count to 100 (level 4) (staff drops counter by 10) - Bamboori - 12-12-2009
65
isnt that a bit... big? :P
RE: Count to 100 (level 4) (staff drops counter by 10) - Som1Lse - 12-12-2009
64
Yep but when scaled down it makes a nice treategg.
RE: Count to 100 (level 4) (staff drops counter by 10) - Bamboori - 12-12-2009
63 i see^^
can you help me with this:
create: (variables exist)
wd_input_query('min','enter minimum.','1');
wd_input_query('max','enter maximum.','10');
variable_global_set(rand,random(max)+min)
draw: (color and font set)
draw_text(room_width/2,room_height/2,rand) it always displays 0...
RE: Count to 100 (level 4) (staff drops counter by 10) - Som1Lse - 12-12-2009
6261 Yep.
Its because wd_input_query_get_text() returns a string.
And random(string) = 0.
Imstead use:
GML-Code:
if wd_input_query('Min','Enter minimum.','1'){
min = real(string_digits(wd_input_query_get_text()))
}else{
game_end()
}
|
As real turns a string into a real number.
Edit: :ninja:'d.
RE: Count to 100 (level 4) (staff drops counter by 10) - Bamboori - 12-12-2009
60
if wd_input_query('min','enter minimum.','1'){
min = real(string_digits(wd_input_query_get_text()))
}else{
game_end()
}
if wd_input_query('max','enter maximum.','10'){
min = real(string_digits(wd_input_query_get_text()))
}else{
game_end()
}
variable_global_set(rand,random(max)+min) whats wrong this time? :P
RE: Count to 100 (level 4) (staff drops counter by 10) - Som1Lse - 12-12-2009
58
Stay out. This is egg business.
RE: Count to 100 (level 4) (staff drops counter by 10) - Alblaka - 12-12-2009
58 OMG... it was 74 a few... hours ago
RE: Count to 100 (level 4) (staff drops counter by 10) - Bamboori - 12-12-2009
57 and it will keep lowering 
btw: someone else, answer me! please^^
RE: Count to 100 (level 4) (staff drops counter by 10) - Som1Lse - 12-12-2009
56
The other egg saved the daycode.
GML-Code:
if wd_input_query('min','enter minimum.','1'){
min = real(string_digits(wd_input_query_get_text()))
}else{
game_end()
exit
}
if wd_input_query('max','enter maximum.','10'){
max = real(string_digits(wd_input_query_get_text()))
}else{
game_end()
exit
}
globalvar rand;
rand = random(max-min)+min
|
How many eggs have we got?
RE: Count to 100 (level 4) (staff drops counter by 10) - Bamboori - 12-12-2009
55 :P
thx dude, you will get a big credit since you made most of the tool :P
|