P
prithvidiamond
Guest
Hello dear readers and forum viewers,
I have a problem with the below code and need help,
globalvar fruit;
randomize();
fruit = irandom_range(0,3);
if fruit = 0
{
draw_self();
draw_sprite(spr_fr_wm,0,320,150);
}
if fruit = 1
{
draw_self();
draw_sprite(spr_fr_ap,0,320,150);
}
if fruit = 2
{
draw_self();
draw_sprite(spr_fr_sb,0,320,150);
}
if fruit = 3
{
draw_self();
draw_sprite(spr_fr_rs,0,320,150);
}
basically the problem is that the sprite keeps changing rapidly, I need ONLY ONE RANDOM sprite to show up until further instructions which I am unable to code.
Please Help any assistance will be of great help!
Thank you,
prithvidiamond
I have a problem with the below code and need help,
globalvar fruit;
randomize();
fruit = irandom_range(0,3);
if fruit = 0
{
draw_self();
draw_sprite(spr_fr_wm,0,320,150);
}
if fruit = 1
{
draw_self();
draw_sprite(spr_fr_ap,0,320,150);
}
if fruit = 2
{
draw_self();
draw_sprite(spr_fr_sb,0,320,150);
}
if fruit = 3
{
draw_self();
draw_sprite(spr_fr_rs,0,320,150);
}
basically the problem is that the sprite keeps changing rapidly, I need ONLY ONE RANDOM sprite to show up until further instructions which I am unable to code.
Please Help any assistance will be of great help!
Thank you,
prithvidiamond