Hello ! Im Zahary and I recently started looking for a 2D game engine that is free , because I want to make a fighter game (like Super Smash Bros). I saw a Getting Started video from GameFromScratch on YouTube about Defold . I like everything about it … everything has its on purpose . Im really really new to the engine and I have a vague knowledge about Lua . So how should I proceed to make the game that I want . My biggest question is about collisions and how should i go with stuff like combos or certain game mechanics that involve combat ?
Hello and welcome to the forum @zaharymomchilov!
Here’s one post on detecting combos: Complex inputs for a fighting game or similar (SOLVED)
Here’s a dev diary for an (unfinished?) beat’em up: Metal Hooligan beat’em up
And another about state-machines in a fighting game: Complicated fighting game state machines?
- Personally I’d explore the use of spine models for the fighters. You can attach game objects with collision objects to the hands and feet and other’s for hit areas in head, torso and legs.
- Another idea could be to spawn/fire short lived game objects containing collision objects and let them travel a short distance from the player performing a punch or a kick.
- Gotcha: Flipping a sprite by rotating around the y-axis will not rotate the collision object (DEF-1117)
- @samuel.nystedt started a beat’em up in Defold on an exploration day here at the office. Not sure if he dares to share the project or not.
Woow ! I didn’t expect such a quick answear , @britzl ! Thank you for the threads . I will read them very carefully and try my best to learn what I need for the project . Unfortunately I don’t want to spend too much money , so Spine models won’t fit my tight budget , but is there any other way that i can implement the Spine mechanic without spending 70 dollars ( 120 local currency) . About the “combo” or idea that you mentioned … it is a great mechanic that I think is easy to add … so i will probably add it . And I might conctact Samuel for more information on his project and how he is doing !
Dragonbones is free and can export to the Spine format. There might be some incompatibility. Also remember that we support the Spine v2 format. Search the forum for more information.
I just read on the forum , that Dragon Bones can export to spine 3.3 so that issue is fixed ! Now I only need
persistence and I’m set to go ! Thank you so much for the materials and the information and I hope than soon I can publish a Dev diary !
@zaharymomchilov I went with the “shooting invisible physics objects” approach for my little game I think it works fairly well. The spine approach sounds good too.
I’ll share it with you if you like. It’s very far from a full game though, just spent a day or two trying out the engine (I’m not a game developer).
Ray casting works excellent for that, too, and I’d wager it’s a bit cheaper performance wise, too?
Yes, ray casts would be another solution. The idea behind the short lived game object traveling in the direction of the attack would be that it would follow a hand or foot through a punch or kick and hit at a time in sync with the animation (given that you animate it at the correct speed ofc). On the other hand it would also hit too soon if you’re standing on top of your opponent… A ray cast could use the
fraction result from a ray_cast_hit to solve this.
I’m not quite sure about the full idea . The classic fighter is kinda too similar to other popular games , so I might combine The Binding of Isaac elements and a typical fighter elements , because mixing genres seems a good idea !
@samuel.nystedt Yeah I would appreciate it ! I want to mix up maybe random generated rooms and fighter mechanics .
@carlfredriknybergbro I will for sure check out Ray casts !
Sent you a PM