• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 13:57
CEST 19:57
KST 02:57
  • 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
[ASL20] Ro24 Preview Pt2: Take-Off0[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18
Community News
Maestros of The Game—$20k event w/ live finals in Paris24Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195Weekly Cups (Jul 28-Aug 3): herO doubles up6
StarCraft 2
General
What mix of new and old maps do you want in the next 1v1 ladder pool? (SC2) : 2v2 & SC: Evo Complete: Weekend Double Feature Geoff 'iNcontroL' Robinson has passed away The GOAT ranking of GOAT rankings RSL Revival patreon money discussion thread
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris RSL: Revival, a new crowdfunded tournament series Sparkling Tuna Cup - Weekly Open Tournament Monday Nights Weeklies Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
External Content
Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below Mutation # 484 Magnetic Pull
Brood War
General
[ASL20] Ro24 Preview Pt2: Take-Off BW General Discussion No Rain in ASL20? Flash On His 2010 "God" Form, Mind Games, vs JD BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL20] Ro24 Group C [ASL20] Ro24 Group B BWCL Season 63 Announcement [CSLPRO] It's CSLAN Season! - Last Chance
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting Muta micro map competition
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread General RTS Discussion Thread Dawn of War IV Path of Exile
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 Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The year 2050 European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
High temperatures on bridge(s) Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment"
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
Evil Gacha Games and the…
ffswowsucks
Breaking the Meta: Non-Stand…
TrAiDoS
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 4184 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
Chat StarLeague
16:00
Chicago LAN Final Day
Razz vs Julia
StRyKeR vs ZZZero
Semih vs TBD
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SpeCial 207
JuggernautJason193
ProTech123
BRAT_OK 64
EmSc Tv 28
MindelVK 27
StarCraft: Brood War
Britney 35762
Mini 559
firebathero 152
JulyZerg 122
Pusan 52
soO 38
ggaemo 36
Sacsri 28
HiyA 9
Noble 5
Stormgate
BeoMulf147
Dota 2
Gorgc13852
XcaliburYe304
Counter-Strike
fl0m1664
Stewie2K459
flusha243
Heroes of the Storm
Khaldor281
Other Games
gofns10861
FrodaN1516
B2W.Neo626
Hui .312
ToD176
KnowMe150
mouzStarbuck128
Organizations
Other Games
gamesdonequick1074
StarCraft 2
EmSc Tv 28
EmSc2Tv 28
Other Games
BasetradeTV11
StarCraft: Brood War
CasterMuse 2
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• StrangeGG 46
• tFFMrPink 7
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis4544
Counter-Strike
• imaqtpie804
• Shiphtur195
Other Games
• WagamamaTV379
Upcoming Events
Replay Cast
6h 3m
Afreeca Starleague
16h 3m
Queen vs HyuN
EffOrt vs Calm
Wardi Open
17h 3m
RotterdaM Event
21h 3m
Replay Cast
1d 6h
Afreeca Starleague
1d 16h
Rush vs TBD
Jaedong vs Mong
WardiTV Summer Champion…
1d 17h
Cure vs Classic
ByuN vs TBD
herO vs TBD
TBD vs NightMare
TBD vs MaxPax
PiGosaur Monday
2 days
Afreeca Starleague
2 days
herO vs TBD
Royal vs Barracks
Replay Cast
3 days
[ Show More ]
The PondCast
3 days
WardiTV Summer Champion…
3 days
Replay Cast
4 days
LiuLi Cup
4 days
MaxPax vs TriGGeR
ByuN vs herO
Cure vs Rogue
Classic vs HeRoMaRinE
Cosmonarchy
4 days
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
BSL Team Wars
5 days
Team Hawk vs Team Dewalt
BSL Team Wars
5 days
Team Hawk vs Team Bonyth
SC Evo League
5 days
TaeJa vs Cure
Rogue vs threepoint
ByuN vs Creator
MaNa vs Classic
[BSL 2025] Weekly
6 days
SC Evo League
6 days
Liquipedia Results

Completed

Jiahua Invitational
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL Season 18: Qualifier 1
Acropolis #4 - TS1
CSLAN 3
SEL Season 2 Championship
WardiTV Summer 2025
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL Season 18: Qualifier 2
CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
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.