Random Seeding in Bullet Hell

Posted by Castypher on June 6, 2011, 7:13 p.m.

As I mentioned before, I'm developing a bullet hell shoot-em-up, and also as I mentioned before, I talked with Purianite about random seeding. It's cool and all, but I've found very annoying problems with it so far. Maybe you guys can help me a bit.

Quote:
seed1=timer;

random_set_seed(seed1);

random1=random(360);

seed1=random_get_seed();

randomize();

bullet=instance_create(x,y,obj_bullet2);

bullet.direction=random1;

bullet.speed=0.5;

This is the effect I want:

This is the effect I get:

THAT DOESN'T LOOK RANDOM AT ALL!

If you can't tell what's going on, the seeded random is based on a timer variable that increments every step. However, the random also increments. The point is, if I wanted this effect, I would do "timer/20" instead of going through the trouble to seed a random.

What the hell and does anyone know how to fix this?

By the way, the reason I'm using random seeding instead of the built-in random is because apparently it's unfair in bullet hell to go complete random as the player can't really memorize. Random seeding also enables me to create the replay system (if it's based on dynamic variables such as a timer or player location, it can still produce random effects while still being replicated in a replay system.

Thanks.

Comments

Cesar 13 years, 4 months ago

THAT LOOKS SO PRETYYY :D

Anyway you don't ever want random in a bullet hell shmup. It can make passages either ridonculously easy or flat out impossible.

Castypher 13 years, 4 months ago

I forgot you were a bit of a shmupper. Just so you're aware, those are the ugliest (and most basic) patterns I've got.