Random Bullet Bill Generator

Description: Have idea for a script, but you can't make it? Post it here!
Moderators: Yoshi021, Lx Xzit, 5438A38A, Semi-moderatos, Moderators

mariogamer1995
Topic author, Nice citizen
Nice citizen
mariogamer1995
Topic author, Nice citizen
Nice citizen
Reputation: 1
Posts: 12
Joined: 28 Jul 2018

Post #1by mariogamer1995 » 2 Aug 2018, 23:17

Hi If i have bullet bill generator in level like smw has i will be happy.
Are there anyone can do it?

Dany The Yoshi Fan
Good citizen
Good citizen
Avatar
Dany The Yoshi Fan
Good citizen
Good citizen
Reputation: 0
Posts: 28
Joined: 12 Feb 2018
Location: Yoshi's Island

Post #2by Dany The Yoshi Fan » 3 Aug 2018, 1:49

What kind of generator?
Image
Image
Image

mariogamer1995
Topic author, Nice citizen
Nice citizen
mariogamer1995
Topic author, Nice citizen
Nice citizen
Reputation: 1
Posts: 12
Joined: 28 Jul 2018

Post #3by mariogamer1995 » 3 Aug 2018, 17:25

if you stop or move ,bullet bills are generated at either or both of most right of the screen at random y position and most left of the screen at random y position.
Did you understand?

Dany The Yoshi Fan
Good citizen
Good citizen
Avatar
Dany The Yoshi Fan
Good citizen
Good citizen
Reputation: 0
Posts: 28
Joined: 12 Feb 2018
Location: Yoshi's Island

Post #4by Dany The Yoshi Fan » 4 Aug 2018, 19:59

Yes, It's definitely possible, but scripts are required.
I'll type to you in a minute, when i write the code. :)
Image
Image
Image

Dany The Yoshi Fan
Good citizen
Good citizen
Avatar
Dany The Yoshi Fan
Good citizen
Good citizen
Reputation: 0
Posts: 28
Joined: 12 Feb 2018
Location: Yoshi's Island

Post #5by Dany The Yoshi Fan » 4 Aug 2018, 22:43

Now to get started, make 6 layers:

1. Att-Screen(Top Left)

2. Att-Screen(Left)

3. Att-Screen(Bottom Left)

4. Att-Screen(Top Right)

5. Att-Screen(Right)

6. Att-Screen(Bottom Right)

Then make a script and insert this code:

select case rnd
case 0 to 0.33
call LSet(Att-Screen(Top Left), 3, 1)
call sleep(1)
call LSet(Att-Screen(Top Left), 3, 1)
case 0.33 to 0.66
call LSet(Att-Screen(Left), 3, 1)
call sleep(1)
call LSet(Att-Screen(Left), 3, 1)
case 0.66 to 0.99
call LSet(Att-Screen(Bottom Left), 3, 1)
call sleep(1)
call LSet(Att-Screen(Bottom Left), 3, 1)
end select
select case rnd
case 0 to 0.33
call LSet(Att-Screen(Top Right), 3, 1)
call sleep(1)
call LSet(Att-Screen(Top Right), 3, 1)
case 0.33 to 0.66
call LSet(Att-Screen(Right), 3, 1)
call sleep(1)
call LSet(Att-Screen(Right), 3, 1)
case 0.66 to 0.99
call LSet(Att-Screen(Bottom Right), 3, 1)
call sleep(1)
call LSet(Att-Screen(Bottom Right), 3, 1)
end select
call sleep(264)
call TCreate(RNG, 0)

Now make a new event called RNG.
Make it so that Level - Start triggers that event, and the event RNG activates the script.

And now the last thing to do is place 6 Bullet Bill generators, each in one of the layers (Must fire with a 1 frame delay).
!!! Make sure you hide the layers.

And if you did everything correctly it should work.
If it doesn't, then let me know.
I check this forum every day.
Image
Image
Image

mariogamer1995
Topic author, Nice citizen
Nice citizen
mariogamer1995
Topic author, Nice citizen
Nice citizen
Reputation: 1
Posts: 12
Joined: 28 Jul 2018

Post #6by mariogamer1995 » 18 Aug 2018, 22:26

I made these layers and RNG event.Then i made level-start trigger RNG but i could not do it.(I hid these layers and made a bullet generator having 1 frame delay)

Dany The Yoshi Fan
Good citizen
Good citizen
Avatar
Dany The Yoshi Fan
Good citizen
Good citizen
Reputation: 0
Posts: 28
Joined: 12 Feb 2018
Location: Yoshi's Island

Post #7by Dany The Yoshi Fan » 18 Aug 2018, 22:30

Did you make the RNG event activate the script?
Image
Image
Image

mariogamer1995
Topic author, Nice citizen
Nice citizen
mariogamer1995
Topic author, Nice citizen
Nice citizen
Reputation: 1
Posts: 12
Joined: 28 Jul 2018

Post #8by mariogamer1995 » 20 Aug 2018, 14:02

Ok i forgot it. It has mistakes.First of all thank you for interest :) . Frequently, it generates bullet bill column that we cannot pass (All bullet bills or most bullet bills we put at right or left layer) .


Return to “Script requests”

Who is online (over the past 5 minutes)

Users browsing this forum: 12 guests