This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-10-22 11:23:42

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Boss Battle Doesn’t Register?

I’m making a scrolling adventure game called Adventures of Chain. You can play the demo here.

Well, I recently made the third boss.

I’ll go back a little further. Here’s how the boss system works. The game scrolls, and when a boss battle happens, it stops scrolling, so you’re moving around the screen. It also shows the variable for the sprite’s health.

The problem is, the third boss doesn’t seem to register when it’s supposed to launch the boss battle, but I can’t find anything wrong with the script.

Hopefully, my fellow Scratchers can help me.

The demo with the third boss is here.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#2 2011-10-22 17:05:01

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Boss Battle Doesn’t Register?

Bump.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#3 2011-10-22 18:14:35

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Boss Battle Doesn’t Register?

Okay, on the third boss, the event seems to be triggered at 480 * -35 yet on your script you have 480 * 0.
http://i51.tinypic.com/vqjuw5.png
Change that and make sure the other bosses aren't changing the "scrolling" variable back to on.


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#4 2011-10-22 19:09:05

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Boss Battle Doesn’t Register?

melikecheese wrote:

Okay, on the third boss, the event seems to be triggered at 480 * -35 yet on your script you have 480 * 0.
http://i51.tinypic.com/vqjuw5.png
Change that and make sure the other bosses aren't changing the "scrolling" variable back to on.

I tried both, and it didn’t work.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#5 2011-10-23 07:34:02

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Boss Battle Doesn’t Register?

Okay, let's see if this works. Remove the block that sets the check point to 0 on the character sprite
http://i55.tinypic.com/21evn1h.png

Add this to the first boss' script
http://i54.tinypic.com/20tqjhv.png

And this to the second
http://i52.tinypic.com/2j3kuts.png

And this to the third
http://i55.tinypic.com/2vaifex.png

Also make sure the script has 480 * -35 as I said before.

Last edited by melikecheese (2011-10-23 07:34:28)


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#6 2011-10-23 08:50:40

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Boss Battle Doesn’t Register?

melikecheese wrote:

Okay, let's see if this works. Remove the block that sets the check point to 0 on the character sprite
http://i55.tinypic.com/21evn1h.png

Add this to the first boss' script
http://i54.tinypic.com/20tqjhv.png

And this to the second
http://i52.tinypic.com/2j3kuts.png

And this to the third
http://i55.tinypic.com/2vaifex.png

Also make sure the script has 480 * -35 as I said before.

It works! I had to make a few adjustments, but it works!

Thanks so much!


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#7 2011-10-23 09:24:16

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Boss Battle Doesn’t Register?

henley wrote:

melikecheese wrote:

Okay, let's see if this works. Remove the block that sets the check point to 0 on the character sprite
http://i55.tinypic.com/21evn1h.png

Add this to the first boss' script
http://i54.tinypic.com/20tqjhv.png

And this to the second
http://i52.tinypic.com/2j3kuts.png

And this to the third
http://i55.tinypic.com/2vaifex.png

Also make sure the script has 480 * -35 as I said before.

It works! I had to make a few adjustments, but it works!

Thanks so much!

You're welcome  big_smile


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#8 2011-10-23 10:54:48

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Boss Battle Doesn’t Register?

Closed by request of owner.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer