2D Sprite Outlines! // Unity Game Devlog #5
Ғылым және технология
In this devlog, I try to figure out how to create outlines for objects so it's clear what is selected. I also implement connecting objects to terrain, which will open more possibilities for levels.
→ Play the demo: trickshotlabs.itch.io/siege-p...
→ Twitter: / samhgames
→ Music: • Milos - Eveningland
More game info:
Siege Engineer is a 2D physics-based puzzle game I'm developing with Unity. You are tasked with building siege engines to transport the ragdoll foot soldier across enemy territory. Fed up with his siege engine genius being ignored due to his low status in feudal society, our protagonist has decided to single-handedly take over kingdoms and stuff.
To play, drag objects from an inventory into the scene and connect them together. Press play to watch chaos ensue. Create catapults, trebuchets, vehicles, and much more!
#gamedev #devlog #unity #madewithunity #indiedev #indiegame #gamedevelopment #devblog
Пікірлер: 46
The outlines make such a huge difference to the intuitiveness of the editing process for sure. It was very clever to sample the intersection points of objects with the terrain like that to calculate the connection points. Great devlog as always Sam!
@SamHogan
4 жыл бұрын
I appreciate it! Building/editing still has some issues, but I think it's getting there
@CodeGaff
4 жыл бұрын
@@SamHogan Definitely is!
Adding outlines was a great idea! And your method for connecting objects to the ground was impressive :)
@SamHogan
4 жыл бұрын
Thanks! Yeah, the ground connection thing took way longer to figure out than I was expecting
Just starting in unity, so watching people like you really helps to teach me the basics :) Oh, and very smart way of making objects connect to the ground, would have never thought of that
Looks great! And the combined with objects was great.
Awesome video, I feel like this game is going to be really satisfying to play with all that polish :D
@SamHogan
4 жыл бұрын
Thanks! And I hope that turns out to be the case!
The outline is looks pretty good :D Also the way to calculate the connection point with the terrain - that's a smart way! :)
@SamHogan
4 жыл бұрын
Thanks! The outline's pretty simple but I think it adds some clarity
Hello Sam! Very nice video and the game looks very interesting! Could you please provide me with a script or some info on how you achieved the outline? Thank you in advance!
I want to be a game developer when I grow up
@therealgboi3895
3 жыл бұрын
Yea same buddy
@williamsokol0
3 жыл бұрын
why wait unity is free!
@therealgboi3895
3 жыл бұрын
@@williamsokol0 ikr. Im just to dumb to understand it yet!
Is there an efficient way to render an outline over sprites that have animations?? Tried doing it in an update method and it's really respurce intensive
very well done
Really nice video! Really want to play the game dude!
@SamHogan
4 жыл бұрын
Thanks! Demo coming soon...
@blobenz2321
4 жыл бұрын
@@SamHogan Yay ^^
Great video as always
@SamHogan
4 жыл бұрын
And thank you as always!
Hi! What needs to be added or changed in the script so that it works under OnMouseDown and on OnMouseUp line disappeared? Can you help me? 1:03
Wow this game looks pretty neat! :) Do you use Unitys phisiks or have you implemented your own?
@SamHogan
4 жыл бұрын
Thanks! I'm just using good ol' Box2D (unity's default for 2D)
So cool!
wait how does this only have 127 likes and 29 comments c'mon people he made a game with infinte levels
Where is code?
Que Genial!
@hadjidejan9541
4 жыл бұрын
obviously i'll subscribe.
@SamHogan
4 жыл бұрын
Really appreciate it!
Hey, Sam! Would kill for that outline script!
@SamHogan
4 жыл бұрын
Here's the inspiration: www.h3xed.com/programming/create-2d-mesh-outline-in-unity-silhouette and it doesn't work on regular sprites, only vector graphic sprites. My script is kind of a mess, but if you're still interested I can give more info
@BRINK2011THEGAME
4 жыл бұрын
Sam Hogan you should put that outline script on sale on unity asset store 👍🏽
@SamHogan
4 жыл бұрын
@@BRINK2011THEGAME Not a bad idea. I would need to get it working with normal bitmap sprites first, which I think would be a slight challenge
What if instead of an outline, I want edge glow?
@SamHogan
4 жыл бұрын
I know you can add different materials to the line renderers, so something like that could work.
Greatt
Why haven't this video grown so much?
@arcanaz6583
Жыл бұрын
Cause he sucks at providing the code.
How to get
Idk what to comment
300th like! :)
Make siege engineers a Mobile game
43rd comment