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
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
sorry i have no idea what your talking about
Offline
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)
Offline
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