2D Sprite Outlines! // Unity Game Devlog #5

Поделиться
HTML-код
  • Опубликовано: 30 июн 2019
  • 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

  • @CodeGaff
    @CodeGaff 4 года назад +19

    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
      @SamHogan  4 года назад +3

      I appreciate it! Building/editing still has some issues, but I think it's getting there

    • @CodeGaff
      @CodeGaff 4 года назад +2

      @@SamHogan Definitely is!

  • @JonasBroman
    @JonasBroman 4 года назад +29

    Adding outlines was a great idea! And your method for connecting objects to the ground was impressive :)

    • @SamHogan
      @SamHogan  4 года назад +6

      Thanks! Yeah, the ground connection thing took way longer to figure out than I was expecting

  • @yeetus9191
    @yeetus9191 3 года назад

    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

  • @MichoSchmidt
    @MichoSchmidt 4 года назад +3

    Looks great! And the combined with objects was great.

  • @islandgames5206
    @islandgames5206 4 года назад +4

    Awesome video, I feel like this game is going to be really satisfying to play with all that polish :D

    • @SamHogan
      @SamHogan  4 года назад +1

      Thanks! And I hope that turns out to be the case!

  • @ZeroTris
    @ZeroTris 4 года назад +5

    The outline is looks pretty good :D
    Also the way to calculate the connection point with the terrain - that's a smart way! :)

    • @SamHogan
      @SamHogan  4 года назад +1

      Thanks! The outline's pretty simple but I think it adds some clarity

  • @bestvodz
    @bestvodz 4 года назад +10

    I want to be a game developer when I grow up

  • @riskybicky8335
    @riskybicky8335 Год назад

    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

  • @elchupacabra4936
    @elchupacabra4936 4 года назад +2

    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!

  • @lora6938
    @lora6938 3 года назад

    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

  • @rose95524
    @rose95524 4 года назад +2

    Great video as always

    • @SamHogan
      @SamHogan  4 года назад +1

      And thank you as always!

  • @sufianahmad7337
    @sufianahmad7337 Год назад

    very well done

  • @blobenz2321
    @blobenz2321 4 года назад +3

    Really nice video! Really want to play the game dude!

    • @SamHogan
      @SamHogan  4 года назад +1

      Thanks! Demo coming soon...

    • @blobenz2321
      @blobenz2321 4 года назад

      @@SamHogan Yay ^^

  • @CodingKricket
    @CodingKricket 3 года назад

    So cool!

  • @YannickGames
    @YannickGames 4 года назад +4

    Wow this game looks pretty neat! :)
    Do you use Unitys phisiks or have you implemented your own?

    • @SamHogan
      @SamHogan  4 года назад

      Thanks! I'm just using good ol' Box2D (unity's default for 2D)

  • @felipecss3295
    @felipecss3295 4 года назад +8

    Where is code?

  • @TuxedoDogss
    @TuxedoDogss 4 года назад +1

    wait how does this only have 127 likes and 29 comments
    c'mon people he made a game with infinte levels

  • @hadjidejan9541
    @hadjidejan9541 4 года назад +2

    Que Genial!

  • @jasonario4781
    @jasonario4781 4 года назад

    Hey, Sam! Would kill for that outline script!

    • @SamHogan
      @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
      @BRINK2011THEGAME 4 года назад +2

      Sam Hogan you should put that outline script on sale on unity asset store 👍🏽

    • @SamHogan
      @SamHogan  4 года назад +3

      @@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

  • @shadowfox87
    @shadowfox87 4 года назад

    What if instead of an outline, I want edge glow?

    • @SamHogan
      @SamHogan  4 года назад

      I know you can add different materials to the line renderers, so something like that could work.

  • @slashingmedal2076
    @slashingmedal2076 3 года назад

    Greatt

  • @howardty2733
    @howardty2733 3 года назад

    Why haven't this video grown so much?

    • @arcanaz6583
      @arcanaz6583 Год назад

      Cause he sucks at providing the code.

  • @user-dy7ne3ox9v
    @user-dy7ne3ox9v Год назад

    How to get

  • @h0tblond3
    @h0tblond3 3 года назад +1

    Idk what to comment

  • @animations5768
    @animations5768 3 года назад

    Make siege engineers a Mobile game

  • @therealgboi3895
    @therealgboi3895 3 года назад

    300th like! :)

  • @vturanjanin72
    @vturanjanin72 2 года назад

    43rd comment