Game Maker 8.1 Sprites

  • Stevie Viaene teaches classes in GameMaker, C Programming, Robotics, and Engineering topics. She is also available for teacher training workshops.
  • Create a PacMan Game in 20 minutes with Game Maker: Part 1. March 25, 2015 1 Comment. Pac-Man Image from arcade-museum.com. In this tutorial series, we will get started with Game Maker relatively fast by creating the old time classic Pac-Man. However we could improve the appearance of the game by changing the sprite representing Pac-Man.
  • Marketplace Got the perfect idea for a game, but don't have the resources to make it? Check out the GameMaker Marketplace, where you'll find everything you need from sprites to sounds and shaders to scripts!

Explore game assets tagged GameMaker on itch.io Find game assets tagged GameMaker like Dialogue System, Witchcraft - Sprite sheet, bktGlitch, 64 x64 character, Top Down Shooter Tutorial on itch.io, the indie game hosting marketplace.

Active3 years, 5 months ago

I am creating a character selection which changes the sprites of the main character.

To do this I have an arrow object which the user clicks to change the sprite of the main character.

Then, on my main character I have a created an event executing code similar to the following:

However, when I run my game to test it out, I get the following error:

The object Mario_selection has the exact create event and same code as the main character. To display changes to the user.

If anyone could help me out, I am fairly new to GameMaker so I have a feeling I'm just misunderstanding global variables.

jotik
9,2447 gold badges41 silver badges99 bronze badges
user3317455user3317455

Sprites For Game Maker 8.1

Game Maker 8.1 Sprites

3 Answers

It looks like the var global.Mario, has not been declared. In the arrow objects create event put,

Trevor MadgeTrevor Madge

If i were you, i would save the chosen 'image' of the user in 1 simple variable.

Add a few constants;

Then you can use those constants and save them in a global variable;

Then you can use those in your objects like so;

The specific error you were getting was because the global variable was not defined at the time of use.

Forefront tmg windows 10. Jun 16, 2015  Forefront on Windows 10 says has compatibilty issues. I have an evaluation copy of Windows 10 and I use Microsoft Forefront. When I try to install it says that there are compatibility issues. Nov 16, 2009  Forefront TMG Client can be installed on client computers protected by Forefront TMG 2010. Forefront TMG Client provides HTTPS inspection notifications, automatic discovery, enhanced security, application support, and access control for client computers. It provides authentication for Winsock applications that use TCP and UDP, supports complex secondary protocols, and supplies user and application information to Forefront TMG 2010.

A better method by the way, would be something like this - saving all sprite handles into specific variables, then using those.

Define some constants for readability;

Then whenever a player switches its character;

And overwrite;

Then you can code all code like this;

Do you understand what i mean? This way you won't need the switch statements everywhere, and just store the chosen sprites in 1 single array at the beginning of the game.

Game Maker 8.1 Sprites 10

You can then code the game without having to check what player image the player chose.

Also, always define global variables at the beginning of the game. Global variables will always exist in the game, in every room, at any given moment.

MakerRob QuistRob Quist
4,1083 gold badges22 silver badges39 bronze badges
Barry Michael Doyle
2,8739 gold badges45 silver badges80 bronze badges
user6256874user6256874

Game Maker 8.1 Sprites 2

Not the answer you're looking for? Browse other questions tagged game-maker or ask your own question.