[Open Assets] Gravity Shield - 6/8/14 Update

This content may be freely modified and/or maintained by anyone.
Status
Not open for further replies.

Goldenhog

Wandering Protagonist
The first custom-made shield for SRB2 ever enters the scene, meet the Gravity Shield! Eggmen, hide your Egg Rocks and Death Eggs, since this shield allows the player to change gravity at will! Press the Spin button while jumping to go into reverse gravity or to change it back.

Since the shield does not replace anything, the only way to see it in action is to either use the objectplace console command or to put it in a map yourself. Which is why I included a little map, Casino Orrery Zone Act 1, so that you can use it right then and there. It's MAPVD, and it'll be the first map you visit if you start a Single Player campaign. Don't worry, it'll take you to Greenflower Zone upon completion, and you'll play the campaign normally from there.

6/8/2014 - Update v1C

  • Added HUD indicator so that the player knows when this shield is equipped while in first-person mode. Gotta keep consistency with the other shields.
  • Fixed the shield and the arrows not scaling with the player.
  • Fixed gravity-change shenanigans caused by changing map while wearing the Gravity Shield. Again.
  • Fixed the previous update's description.
9/5/2014 - Update v1B

  • Fixed being able to stack multiple Gravity Shields on top of one another.
  • Fixed gravity-change shenanigans caused by changing map while wearing the Gravity Shield.
  • Added RedEnchilada to the "Supporters / Co-Authors" list. Sorry 'bout that.
Remaining bugs:

  • In 2D mode, the shield won't switch colour when you switch gravity.
  • The shield will go blue if the player is too close to the camera.
 

Attachments

  • srb20001.gif
    srb20001.gif
    5.9 MB · Views: 832
  • srb20004.gif
    srb20004.gif
    5.7 MB · Views: 686
  • srb20005.gif
    srb20005.gif
    5.5 MB · Views: 620
  • srb20006.gif
    srb20006.gif
    5.7 MB · Views: 613
  • gravityshield.zip
    25.7 KB · Views: 729
Last edited:
A nice idea for a custom shield, I'm sure someone will be able to find some good use for it.
 
Actually, I'm sure there was a flight shield somewhere before in 2.0. But yeah, seems cool.

---------- Post added at 08:14 AM ---------- Previous post was at 08:05 AM ----------

Am I the only one who thinks the arrows are going the wrong way?
 
The arrows point in the direction you'll end up falling in if you flip at that moment, which is very useful if you've forgotten blue means normal and orange means flipped.
 
I found a slight bug.
gravityshield.gif

Did you catch it? The player can have multiple gravity shields on at once, which results in a more opaque shield and a greater number of arrows all around you.
 
Found a bug.

P0qiodS.png


In first person, it doesn't tell you what shield you have in the top-right corner.
 
I really enjoyed the shield and thanks for sharing for all of us Goldenhog, but I found a bug: If you finish the level with gravity shield, you continue with it (invisibly) at the next level.
 

Attachments

  • srb20012.gif
    srb20012.gif
    6.7 MB · Views: 487
I really enjoyed the shield and thanks for sharing for all of us Goldenhog, but I found a bug: If you finish the level with gravity shield, you continue with it (invisibly) at the next level.

In extension to this you can stack the effects of the gravity shield with another shield, such as the attraction shield in GFZ1. This includes the additional hit you can take, effectively resulting in a two-layer shield. (The gravity shield goes first.)
 

Attachments

  • srb20000.gif
    srb20000.gif
    2 MB · Views: 421
Found a bug.

In first person, it doesn't tell you what shield you have in the top-right corner.

I never use first-person mode so not only did I not notice, but I wasn't aware this was supposed to happen. OK, gotta learn how to Lua the HUD now, so fixing this one might take a bit longer than the others.

I found a slight bug.
Did you catch it? The player can have multiple gravity shields on at once, which results in a more opaque shield and a greater number of arrows all around you.

Goddammit, I had this one written down and I totally forgot about it before submitting it.

I really enjoyed the shield and thanks for sharing for all of us Goldenhog, but I found a bug: If you finish the level with gravity shield, you continue with it (invisibly) at the next level.

So, gshield_power doesn't reset when a level is completed. Should be easy to fix.

In extension to this you can stack the effects of the gravity shield with another shield, such as the attraction shield in GFZ1. This includes the additional hit you can take, effectively resulting in a two-layer shield. (The gravity shield goes first.)

Shouldn't be a problem once the previous bug is fixed.

Thanks, everyone! Not only for playing and enjoying my little shield, but also by reporting the bugs. I'll be updating the main post right after posting this to add these bugs to the list.

---------- Post added at 07:51 PM ---------- Previous post was at 06:29 PM ----------

Update v1B released.

The shield stack and the shield-not-resetting-on-map-change bugs, as hilarious as they were, have been fixed. The HUD thing is going to wait until I figure out how to tinker with the HUD with Lua.

Also, it seems I did something wrong 'coz RedEnchilada wasn't showing up in the "Supporters / Co-Authors" list. That's been take care of too.
 
One thing that could be cool is that if you got a second gravity shield, you could flip gravity a second time in the air. I could see the usage in a level for that... Say maybe there's a secret near the end of the level which requires 2 gravity flips, and you have to carry a shield all the way from the start of the level to there in order to get it... and that's just one example! Although i'm not sure if that is possible without getting the arrow stacking effect, it would be a cool thing to try and put in if you can.
 
Found a bug.

P0qiodS.png


In first person, it doesn't tell you what shield you have in the top-right corner.

It's funny how the arrow is pointing to the top-right corner in a post about the icon being in the top-right corner. :P
 
Hey, you know that bug you fixed where you could carry the shield over while invisible? yeeeeaaaah, it's not entirely fixed. You see, if you grab the shield, then hit "retry", you will keep the shield, but invisible. And you can keep that invisible shield even after you complete the stage. I'm being fair and telling you this, but I honestly want it to be normal to be able to carry it over, because you can only get it legitimately on the added stage, and it's so fun to use on other stages. But yeah, I'll be fair here and tell you about this bug. Hope this helps.
 
so, if you DO ever fix that bug I was talking about, maybe you could make it so the gravity shield spawns at the beginning of each stage? Then we could legitimately get the gravity shield at all the levels. Just a thought.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top