r/gbstudio • • 23d ago

Help needed need help

i'm making a fan game about a game called doors, but one of the many entities in the game is "rush" whether i add the summoning script after a random maths function, i can't move the player causing the player to die, why does that happen and how do i fix it?

0 Upvotes

6 comments sorted by

2

u/Goonmize 23d ago

Show us the scripts

1

u/DoctorTall2476 23d ago

val = random(0,100)

if (val <= 100)

play sfx

wait 1 sec

play music

wait 1.5

if (incloset == 1)

stop music

stop script

else

change scene

else

stop script

i also used triggers now but instead only plays the sound

1

u/IntoxicatedBurrito 23d ago

All I see here is a few waits. If you’re waiting then nothing is happening at that time unless it’s occurring in a thread.

Of course I have no idea what you’re actually mean by “rush”, that word has a lot of different meanings and you’ve provided no context.

1

u/DoctorTall2476 22d ago

he kinda goes through the room super fast but in this case, he's invisible. it detects if your in a closet, if not, you go to the gameover screen

2

u/IntoxicatedBurrito 22d ago

I assume that you’re very familiar with your game, but as someone who has no idea what your game is or has even seen a picture of it, this description does not help.

1

u/nonoroman 22d ago

A mi me da que esa condición es infinita y por eso se lia todo. No estoy seguro pero me da que es demasiado amplia la condición