Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

My sprites are being retarded...

Jason

Awesome Bro

Okay, so I've given myself a quick tutorial of using Game Maker, so far I've managed to add gravity, make the character walk left and right, be able to jump and climb ladders (Although climbing ladders is buggy as hell, so I'm gonna' remove that feature at the moment), and kept the focus on the player in center-screen...

But now I've come to actually animate the player, and well... something's odd, it's not quite working, let me show you a quick example;

spriteerror.PNG

As you can see, on the actual movement frames (That aren't in the stood still position...), the sprite fucks up with its transparency, now I've tried two approaches to this, importing each image seperately, and using a spritesheet and the "Create from strip" feature... I recieved the same results on both occasions...

Also, this is happening on the walking right animation, not just the left...

Any ideas why ?
 

mawk

Sponsor

Game Maker 7 is a little weird with its transparencies. it doesn't use actual alpha channels; instead, it behaves a little like RM and defines a background colour to be transparent. however, you can't choose what it defines as the "background colour"; gammaker 7 will always determine that the colour of the bottom-left pixel in a frame will be the "transparent" one, and everything else is solid.

it's pretty annoying, but can be worked around by making the sprite's background wider on either side so that the bottom-left pixel is part of the background and not the sprite itself. you won't run into collision issues as long as you use an appropriate hitbox. gammaker 8 is finally gonna feature support for alpha channels (among some other cool things), so I'm kinda looking forward to that.

what's silly is that in 7 you can still do TONS of things with alpha channels; alpha masking, opacity, etc. just, you can't do any of that in the sprite editor.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top