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 receivego left ▼repeat10change x by-10wait1secsbroadcastgo right ▼stop scriptwhen i receivego right ▼repeat10change x by10wait1secsbroadcastgo left ▼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 receivego left ▼when this message recievedrepeat10repeat this 10 timeschange x by-10makes the sprite jump downwait1secsbroadcastgo right ▼send this messagestop scriptstops running scriptwhen i receivego right ▼when message recievedrepeat10repeat this 10 timeschange x by10makes the sprite jumpwait1secsbroadcastgo left ▼broadcast this messagestop scriptstop 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