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

#1 2013-04-29 23:08:42

canadiandufus
New Scratcher
Registered: 2013-04-11
Posts: 10

How to make boss fight. please help!

Hello everybody! im sorry i have been posting so many threads (i think there called) anyway its just because i am working on a BIG project for school and im wondering how you make a boss fight.
If you have any links to some that would be good but i want mine to have attacks and the boss to have random attacks and random misses/ blocks.  I also want both the main character and boss to have random attack blocks. if you could tell me how to make a amazing boss fight or link me one I would apreciate it so much
sincerely... your favorite dufus~

Offline

 

#2 2013-04-30 10:01:30

cauzality
New Scratcher
Registered: 2013-03-19
Posts: 44

Re: How to make boss fight. please help!

i would make a variety of stacks which loop (eg. forever, repeat until, etc...). Each stack would control the boss sprite in some way. Have the boss start with one stack active and then, after some condition is met, use a broadcast block followed by a stop script block to leave that stack and activate another, which will control the boss in some other way.

A simple example for walking back and forth:

when i receive [go left v]
repeat [10]
   change x by [-10]
end
wait [1] secs
broadcast [go right v]
stop script

when i receive [go right v]
repeat [10]
   change x by [10]
end
wait [1] secs
broadcast [go left v]
stop script

Offline

 

#3 2013-05-02 00:20:35

canadiandufus
New Scratcher
Registered: 2013-04-11
Posts: 10

Re: How to make boss fight. please help!

sorry i have no idea what your talking about

Offline

 

#4 2013-05-02 12:34:47

joshuaho
Scratcher
Registered: 2012-08-20
Posts: 100+

Re: How to make boss fight. please help!

joshuaho wrote:

canadiandufus wrote:

sorry i have no idea what your talking about

cauzality made the script, but I will describe how the script works.

when i receive [go left v]//when this message recieved
repeat [10]//repeat this 10 times
   change x by [-10]//makes the sprite jump down
end
wait [1] secs
broadcast [go right v]// send this message
stop script//stops running script

when i receive [go right v]//when message recieved
repeat [10]//repeat this 10 times
   change x by [10] //makes the sprite jump
end
wait [1] secs
broadcast [go left v]//broadcast this message
stop script//stop running this script

Last edited by joshuaho (2013-05-02 12:36:24)


Did you know that you can go to space and see Mars by clicking here?

Offline

 

#5 2013-05-03 12:04:05

cauzality
New Scratcher
Registered: 2013-03-19
Posts: 44

Re: How to make boss fight. please help!

try it out and tell me if you still don't get it. make a new project and then add those two stacks of blocks to the Scratch cat's scripts. then double click one of them to activate it. you will see that cat pace back and forth on the screen. And because in scratch active blocks have a white border, you will see which stack is currently controlling the cat. I think it will make more sense if you make it and see it in action.

Offline

 

Board footer