• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:44
CEST 00:44
KST 07:44
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL59Weekly Cups (June 23-29): Reynor in world title form?13FEL Cracov 2025 (July 27) - $8000 live event19Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
Program: SC2 / XSplit / OBS Scene Switcher Statistics for vetoed/disliked maps The SCII GOAT: A statistical Evaluation Weekly Cups (June 23-29): Reynor in world title form? PiG Sty Festival #5: Playoffs Preview + Groups Recap
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event RSL: Revival, a new crowdfunded tournament series Korean Starcraft League Week 77 Master Swan Open (Global Bronze-Master 2) [GSL 2025] Code S: Season 2 - Semi Finals & Finals
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Flash Announces Hiatus From ASL SC uni coach streams logging into betting site BGH Mineral Boosts Tutorial Video Player “Jedi” cheat on CSL Replays question
Tourneys
[Megathread] Daily Proleagues [BSL20] Grand Finals - Sunday 20:00 CET Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Trading/Investing Thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread Formula 1 Discussion NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 583 users

Making a game #2

Blogs > ClysmiC
Post a Reply
ClysmiC
Profile Blog Joined December 2010
United States2192 Posts
Last Edited: 2011-12-03 05:49:59
December 03 2011 05:40 GMT
#1
So in the summer, I decided to try and make a game with gamemaker and blog my progress. Well yeah, I wasn't really happy with my art (it was kinda lame, and it was a pain to animate), and my motivation kinda died out.

But, I am at it again. The story-line and game style are still going to be the same as they were planned in my first thread. But this time I have more than just mere ideas, I have actual progress. Over the past week, I've created a movement engine from scratch, redrawn a smaller, easier sprite and animated it to run, jump, fall, and cast spells (while standing, running, jumping, or falling).

Here are my sprites!
+ Show Spoiler +

Main Character running animation. The first frame is alse his sprite when he is standing still.
[image loading]

1st frame- Jumping, 2nd frame - Falling
[image loading]

Casting spell from a standstill (imagine a fireball coming out of his hand after the 4th frame)
[image loading]

Casting spell while running
[image loading]

Casting while jumping
[image loading]

Casting while falling
[image loading]


I don't really pre-plan what I am going to do each day when I sit down to work on my game. I kind of just keep a mental checklist of the next two or three things that I want to do, and by the time I have finished one or two of those, I think of one or two more things to add to the checklist. Maybe that's inefficient, but it's just how I work.


Here is all of the things I've knocked off my checklist:

+ Show Spoiler +
-Draw/animate sprite
-Implement basic right/left movement
-Add screen-scrolling feature that ensures that the character's back is always near the edge of the screen, whether they are facing right or left (thus giving them view of a large area in the direction the sprite is looking).
-Implement jumping and gravity
-Make sure the sprite reverts back to a standing one after landing from a jump
-Add mechanic in which holding down the spacebar results in a higher jump
-Add ability to cast fireball spell while standing still
-Add ability to cast fireball spell while running
-Add ability to cast fireball spell while jumping/falling
-Implement seemless transition of animation if character changes direction, jumps, or falls in the middle of the spell-casting animation (ex: If the player jumps while he is in frame 2 of the cast-while-running animation, the next frame will show him in frame 3 of the cast-while-jumping animation)



Things I'm planning on doing within a few days:

+ Show Spoiler +
-Draw animated fireball for when the fireball spell is cast (I'm currently just using a 5x5 orange block as a placeholder sprite)
-Add collision behavior to the fireball, so it gets destroyed when it hits walls.
-Add ability to cast fireball spell straight up, or straight down (if character is in mid-air).
-Add levitation spell that can be cast while in mid-air, and allows the character to temporarily hover.



Frustrating-as-hell bugs that I overcame:

+ Show Spoiler +
-Often, when I was testing the jump mechanic, the sprite would land 1 pixel above the platform, and appear to be hovering above it. See below for how I solved it.
-Some pixels were being drawn bigger than others... kind of hard to explain. Here are some screenshots to help:

How it's supposed to look
[image loading]

How it looks when I playtest (notice the discrepencies in the orange ball and the characters neck, among others)
[image loading]

I solved both these bugs the same way. I had a feeling that it had to do with the game trying to draw pixels at non-integer coordinates, and thus oddly scaling/stretching individual pixels. Some of my variables (such as gravity) are set to non-integers, so this kind of made sense that this would be the case... I just couldn't think of how to fix it. I asked for help on the Game Maker forums, and received the solution to both problems in one simple line of code!

In the "draw" event:
    draw_sprite_ext(sprite_index, image_index, round(x), round(y), image_xscale, image_yscale, image_angle, image_blend, image_alpha);


Bascially, this code says that every time that a sprite is drawn, redraw it with rounded x and y coordinates.


*****
EatThePath
Profile Blog Joined September 2009
United States3943 Posts
December 03 2011 09:15 GMT
#2
Gamemaker is fun.

Sprites are a pain. :\

glhf to you! I hope to catch any update blogs. ^^
Comprehensive strategic intention: DNE
hp.Shell
Profile Blog Joined April 2010
United States2527 Posts
December 03 2011 10:30 GMT
#3
Very cool! Good luck with burnout. I like this character better than the one in the other topic. I hope you finish this because it looks like a fun one! Did you decide to keep both versions of the character? And is there a recolor of this sprite if so? Also I'm wondering how you animate the transition from Jumping to Falling. Do you keep the Jumping animation while falling from a jump or do you transition it into the Falling animation? Nice work.
Please PM me with any songs you like that you think I haven't heard before!
ClysmiC
Profile Blog Joined December 2010
United States2192 Posts
December 03 2011 16:33 GMT
#4
On December 03 2011 19:30 hp.Shell wrote:
Very cool! Good luck with burnout. I like this character better than the one in the other topic. I hope you finish this because it looks like a fun one! Did you decide to keep both versions of the character? And is there a recolor of this sprite if so? Also I'm wondering how you animate the transition from Jumping to Falling. Do you keep the Jumping animation while falling from a jump or do you transition it into the Falling animation? Nice work.

I'm still planning on having good/evil versions of the character and the storyline. Although I haven't drawn the evil version yet (but it should only take like 20 minutes to recolor all the sprites).

As for the difference between jumping and falling, yes I do transition it. If the character is in the air and has an upward velocity, it shows the jumping sprite. If he is in the air and has a downward velocity, it shows the falling sprite. So every time the character jumps, the sprite will change to falling right after the peak of his jump.
hp.Shell
Profile Blog Joined April 2010
United States2527 Posts
December 04 2011 16:36 GMT
#5
Ok. I just thought it might seem a little weird having his legs switch so fast. Not sure how you would change that though. But if it works, it works. Sometimes stuff like that actually makes the game look better.
Please PM me with any songs you like that you think I haven't heard before!
Please log in or register to reply.
Live Events Refresh
Next event in 11h 17m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 167
ProTech86
NeuroSwarm 79
StarCraft: Brood War
firebathero 258
NaDa 43
Rock 40
LancerX 21
yabsab 0
League of Legends
Grubby3630
Dendi1531
Counter-Strike
Stewie2K100
Heroes of the Storm
Liquid`Hasu534
Khaldor209
Other Games
summit1g10101
tarik_tv4408
fl0m661
RotterdaM319
ViBE109
Sick55
Organizations
Other Games
BasetradeTV35
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 22 non-featured ]
StarCraft 2
• Berry_CruncH303
• davetesta43
• musti20045 38
• tFFMrPink 20
• HeavenSC 17
• OhrlRock 2
• IndyKCrew
• AfreecaTV YouTube
• sooper7s
• intothetv
• Kozan
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• Pr0nogo 5
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• Ler114
League of Legends
• Doublelift4167
• Jankos1911
• masondota21119
Other Games
• imaqtpie1108
Upcoming Events
RSL Revival
11h 17m
Clem vs Classic
SHIN vs Cure
FEL
13h 17m
WardiTV European League
13h 17m
BSL: ProLeague
19h 17m
Dewalt vs Bonyth
Replay Cast
2 days
Sparkling Tuna Cup
2 days
WardiTV European League
2 days
The PondCast
3 days
Replay Cast
4 days
RSL Revival
4 days
[ Show More ]
Replay Cast
5 days
RSL Revival
5 days
FEL
5 days
RSL Revival
6 days
FEL
6 days
FEL
6 days
Liquipedia Results

Completed

BSL 2v2 Season 3
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.