Jump to content

Photo

More Metroid-Style Scripts- A Screw Attack and a Spring Ball


  • Please log in to reply
16 replies to this topic

#16 justin

justin

    Adept

  • Members

Posted 15 February 2015 - 03:58 PM

Coding things for sideview gravity is weird... I got both the Normal Jump and Hi-Jump to work properly now. I don't know how I did it. Really, I don't. I just kept trying various ideas until one of them worked. This one does.

 

As near as I can figure, combo positions are being figured out in the following way: X is the left of the screen and Y is the top. The way it is now, any breakable blocks must have nothing that impedes horizontal movement directly below and one space either left or right of them. For example, in the following screenshot the block at the top could be broken but any placed next to a wall couldn't.

 

 

ya, sideview is crazy.  in both normal and sideview gravity - x is horizontal, and y is vertical.  sideview just doesn't have the z axis, with the y functioning as the z axis.

i'm sure the block issue you describe is because of the last point i made above.



#17 ywkls

ywkls

    Master

  • Members

Posted 15 February 2015 - 04:34 PM

That dust code works a lot better than what I had, thanks!. It's creating the dust with a good deal of space between the segments, but it isn't anything I mind leaving as it is. I also went ahead and made the other changes that you suggested as well as a few I decided to implement to keep the animation from playing if you held down the L Button, or were falling. And I switched it from changing to the under combo to triggering screen secrets so that if I left the screen and returned the block would still be gone.

 

 

As for why that block code is the way it is... that's because it works. I tested jumping left or right which is really the only direction you can move in sideview unless climbing one of those sideview ladders you created with script. I have no earthly idea why it functions. (Literally, I just kept throwing various combinations at it and seeing what happened.)

 

Here's the code, incorporating your new Dust Code and other changes I mentioned.

 

Spoiler

 

Once again, thanks for your contributions! I am currently working this new feature into my quest and will post the resulting completed quest once I have tested it with all of my alterations activated.


Edited by ywkls, 15 February 2015 - 08:48 PM.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users