• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 19:50
CEST 01:50
KST 08:50
  • 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
[BSL20] Non-Korean Championship 4x BSL + 4x China1Flash Announces Hiatus From ASL63Weekly Cups (June 23-29): Reynor in world title form?13FEL Cracov 2025 (July 27) - $8000 live event22Esports World Cup 2025 - Final Player Roster16
StarCraft 2
General
Program: SC2 / XSplit / OBS Scene Switcher The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Weekly Cups (June 23-29): Reynor in world title form? PiG Sty Festival #5: Playoffs Preview + Groups Recap
Tourneys
RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays Korean Starcraft League Week 77
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma
Brood War
General
SC uni coach streams logging into betting site Player “Jedi” cheat on CSL Flash Announces Hiatus From ASL BW General Discussion Practice Partners (Official)
Tourneys
[BSL20] Non-Korean Championship 4x BSL + 4x China CSL Xiamen International Invitational The Casual Games of the Week Thread [BSL20] Grand Finals - Sunday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread 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
US Politics Mega-thread Russo-Ukrainian War Thread Summer Games Done Quick 2025! Trading/Investing Thread Things Aren’t Peaceful in Palestine
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread 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: 518 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 10m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 255
Livibee 165
ProTech84
StarCraft: Brood War
Artosis 890
Stork 92
League of Legends
Grubby4230
Dendi1308
Counter-Strike
tarik_tv7157
Fnx 1497
Stewie2K937
Super Smash Bros
Mew2King113
Heroes of the Storm
Khaldor273
Other Games
summit1g8771
fl0m1117
ViBE225
Maynarde172
Pyrionflax144
JuggernautJason10
Organizations
Other Games
gamesdonequick44076
BasetradeTV72
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• davetesta36
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• blackmanpl 30
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• Ler79
League of Legends
• masondota2876
Upcoming Events
Wardi Open
11h 10m
Replay Cast
1d
Sparkling Tuna Cup
1d 10h
WardiTV European League
1d 16h
MaNa vs sebesdes
Mixu vs Fjant
ByuN vs HeRoMaRinE
ShoWTimE vs goblin
Gerald vs Babymarine
Krystianer vs YoungYakov
PiGosaur Monday
2 days
The PondCast
2 days
WardiTV European League
2 days
Jumy vs NightPhoenix
Percival vs Nicoract
ArT vs HiGhDrA
MaxPax vs Harstem
Scarlett vs Shameless
SKillous vs uThermal
uThermal 2v2 Circuit
2 days
Replay Cast
3 days
RSL Revival
3 days
ByuN vs SHIN
Clem vs Reynor
[ Show More ]
Replay Cast
4 days
RSL Revival
4 days
Classic vs Cure
FEL
4 days
RSL Revival
5 days
FEL
5 days
FEL
5 days
Sparkling Tuna Cup
6 days
RSL Revival
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
Jiahua Invitational
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
CSL Xiamen Invitational
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.