Weapon Alpha - Printable Version +- The VG Resource (https://www.vg-resource.com) +-- Forum: Creativity (https://www.vg-resource.com/forum-126.html) +--- Forum: Game Development (https://www.vg-resource.com/forum-129.html) +--- Thread: Weapon Alpha (/thread-27336.html) |
RE: Weapon Alpha - Valo - 07-12-2015 The health bar above enemy heads is a placeholder graphic, i dont intend for it to be so plain in final I also plan on making it do something with that chemical canister when its defeated, but scuttles are a group, so i wanted to code the basic movement AI first. Im going in now to code the various subtypes. RE: Weapon Alpha - Bombshell93 - 07-12-2015 looks really awesome, but the explosion animation seemed a bit without punch, it'd have a much better effect if the first frame of the explosion was a bit smaller (to give the explosion the feel of something expanding) and if it displayed in front of the sprite rather than behind, also having the sprite change to destroyed sprite on the apex of the explosion, but these are purely cosmetic, looking fantastic so far, getting more hyped each update! RE: Weapon Alpha - Valo - 07-13-2015 RE: Weapon Alpha - Valo - 07-16-2015 I'm trying to get water physics working and i kinda wanted a graphical opinion. Blue filter or not blue filter? Personally, I think it helps sell the underwater effect, but i also think it kinda washes out the sprites. Is that the right term? it ruins the palette contrast I mean. (at the moment it is done through the image editor, but I could likely get a similar effect done through code) RE: Weapon Alpha - Quirby64 - 07-16-2015 I just went swimming today and I looked underwater a lot, I should be helpful here iguess The blue filter is realistically correct - looking underwater without goggles things have a bit of a blue tint. Also, instead of putting it into code, why not make a something percent transparency tile, and place it over the regular light blue water tile? As in like 50% grey or something RE: Weapon Alpha - Bombshell93 - 07-16-2015 you could pull a sonic 3, upon entering the water a splash graphic is shown, which is just a clever way to mask the changing of the sprite, to a different palette, you could simply make alternative versions of the sprites with a new palette for all sprites relevant to water (jumping and falling for entering and exiting the water, swim, maybe run if you want to run on the underwater floor, etc.) you can use that as a chance to make a palette not so washed out. RE: Weapon Alpha - Valo - 07-16-2015 (07-16-2015, 09:27 PM)Quirby64 Wrote: I just went swimming today and I looked underwater a lot, I should be helpful here iguess EDIT: better example, lemme just share the tiles themselves :EDIT I would prefer doing it by coding the object/enemy/player to filter itself than by placing a transparent sheet over water areas because I already draw water versions of the tiles, thus the only thing that needs tinted would be non background stuff. I feel tinting over the background would ruin the cleanness of the watered tiles. (07-16-2015, 09:29 PM)Bombshell93 Wrote: you could pull a sonic 3, upon entering the water a splash graphic is shown, which is just a clever way to mask the changing of the sprite, to a different palette, you could simply make alternative versions of the sprites with a new palette for all sprites relevant to water (jumping and falling for entering and exiting the water, swim, maybe run if you want to run on the underwater floor, etc.) you can use that as a chance to make a palette not so washed out. I would do it that way if gm could easily do palette data rather than me making a sprite set layer of every color in an objects set.I'm personally against hand recoloring it simply because of the amount of sprite sets that would create, layered or not. While the effect would look VERY nice, i dont think it is the most efficient solution. RE: Weapon Alpha - TheShyGuy - 07-16-2015 But you can do palettes (as in specifying an alternate color palette instead of manually recoloring everything) in GM since GM supports pixel (fragment) shaders. I've even done it for Neweegee already. Let me see if I can find the necessary code. Edit:....I'm looking.... RE: Weapon Alpha - Valo - 07-16-2015 (07-16-2015, 10:57 PM)TheShyGuy Wrote: But you can do palettes (as in specifying an alternate color palette instead of manually recoloring everything) in GM since GM supports pixel (fragment) shaders. I've even done it for Neweegee already. Let me see if I can find the necessary code. I've never heard of pixel fragment shaders actually...And looking it up it might be a studio version feature. I'm not using studio. RE: Weapon Alpha - TheShyGuy - 07-17-2015 How to draw sprites using a palette in GM Studio: ...I just found it too =/. Well, if you ever move to studio, heres some important code: Notes: "uniform sampler2D Palette" refer to a sampler texture that is an externally loaded sprites since GM will auto batch sprites into a "Texture Page". When that happens, GM will change the UV coords to something unexpected. But, I need to know the exact UV coords of the palette image, so instead I externally load them to reserve the original UV coords. The drawn sprite (gm_BaseTexture) is an indexed sprite, where each pixel's color.r (indexPixel.x) refers to the x coordinate of the correct color within the palette (domain [0,255]) and color.g (indexPixel.y) refers to the y coordinate of the correct color within the palette (domain [0,255]). ___ I'm just typing this up for other people and for my own reference. If you ever move to GM Studio or any other graphics library (OpenGL, Direct X), you can still refer to the above to draw sprites with arbitrary palettes. RE: Weapon Alpha - Valo - 07-17-2015 (07-17-2015, 12:22 AM)TheShyGuy Wrote: ...I just found it too =/. Well, if you ever move to studio, heres some important code:I'd more readily move to studio if some of the scripts i use werent completely incompatible with it. ;-; RE: Weapon Alpha - Bombshell93 - 07-17-2015 game maker has always had terrible compatibility issues from version to version, the change so much in gml a lot with no reason whatsoever. also a note, you're probably better off in a palette swapper passing in a group of vec3's as palette and determine the colour by the w component, which you can decompose and edit in pretty much any good image editing program. Code: int paletteIndex = int(textureSample.w * PALETTE_COLOR_COUNT); //probably going 16 colors in the palette would work fine back on topic, how many animations are you looking to use underwater? because you have a lot more freedom with textures than you'd think, adding a new set wouldn't be much of a cost short of HD sprites RE: Weapon Alpha - Valo - 07-17-2015 (07-17-2015, 06:27 AM)Bombshell93 Wrote: game maker has always had terrible compatibility issues from version to version, the change so much in gml a lot with no reason whatsoever. You wanna repeat this bit in english? (07-17-2015, 06:27 AM)Bombshell93 Wrote: back on topic, how many animations are you looking to use underwater? because you have a lot more freedom with textures than you'd think, adding a new set wouldn't be much of a cost short of HD spritesoff the top of my head: Idle Move Idle shoot Move shoot Propel forward Propel forward shoot Hurt and Drowning RE: Weapon Alpha - Bombshell93 - 07-17-2015 so basicly your whole sprite set and then some, if your really not liking how the colour wash out looks, your only 2 options short of upgrading to GM:studio would be, play around with blend modes (I always had trouble wrapping my head around it, but it'd add a bit more flexibility than flat changing colour) or the new sprite sheet with a new palette RE: Weapon Alpha - Valo - 07-17-2015 (07-17-2015, 09:01 AM)Bombshell93 Wrote: so basicly your whole sprite set and then some, if your really not liking how the colour wash out looks, your only 2 options short of upgrading to GM:studio would be, play around with blend modes (I always had trouble wrapping my head around it, but it'd add a bit more flexibility than flat changing colour) or the new sprite sheet with a new palette at this point, i may just make all the water sprite sets hand recolored then , since the 'land' animations dont ever play underwater. I wouldnt have duplicate sheets, just the water frames would be pre-blued. |