AuthorTopic: Metal on Metal sparks  (Read 5917 times)

Offline jahasaja

  • 0010
  • *
  • Posts: 120
  • Karma: +0/-0
    • View Profile

Metal on Metal sparks

on: July 13, 2014, 10:30:00 am
Hi all,

I try to do an impact animation when a sword strikes a sword or a sword strikes armour.

This is what I got now, It does the job but does not really pop out. I should also add that the animation goes a bit quicker in the game.



any advice much appreciated.

Offline Farage

  • 0001
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile

Re: Metal on Metal sparks

Reply #1 on: July 13, 2014, 09:14:00 pm
Im no expert, but as far as im concerned, just adding more frames would make it look a lot better.
Really, single high contrasted pixels with a lot of frames creates a good impression of "sparks"

To prove my point:
http://37.media.tumblr.com/6650c141f8b4247867a9b4b91b37829b/tumblr_n4nfnyQWJs1smtro9o1_1280.gif
This is from a kickstarter project called witchmarsch
« Last Edit: July 13, 2014, 09:15:54 pm by Farage »

Offline jahasaja

  • 0010
  • *
  • Posts: 120
  • Karma: +0/-0
    • View Profile

Re: Metal on Metal sparks

Reply #2 on: July 14, 2014, 12:24:43 pm
Thanks that was a nice example.

I ended up coding it into the game with single sparks that turns transparent to make it more random. But the effect is quite similar to your example 

Offline Alex Sinigaglia

  • 0001
  • *
  • Posts: 90
  • Karma: +0/-0
  • aka G.o.D.
    • god-of-death-alex
    • View Profile

Re: Metal on Metal sparks

Reply #3 on: July 15, 2014, 01:06:48 pm
I added five more frames for the spark  ;D

Slow:


Fast:

Offline EvilEye

  • 0011
  • **
  • Posts: 501
  • Karma: +1/-0
  • Game Developer Extroaordinaire
    • View Profile

Re: Metal on Metal sparks

Reply #4 on: July 15, 2014, 02:24:04 pm
Explosions ( this is technically a kind of explosion ) start out fast and then slow down. So it should be fast in the beginning and slow down at the end. What you have right now looks a bit like some kind of magic effect.

I wouldn't over do it with frames though. Just a couple more frames then what you first had would probably be adequate.

*EDIT* Oh yeah I would make the starting sparks very bright but the later ones darker. You do this a little but not as much as is needed IMO.
« Last Edit: July 15, 2014, 02:27:54 pm by EvilEye »

Offline rikfuzz

  • 0010
  • *
  • Posts: 427
  • Karma: +1/-0
    • View Profile
    • twitter @hot_pengu

Re: Metal on Metal sparks

Reply #5 on: July 15, 2014, 03:38:30 pm
Sparks are little bits of metal, so they should be subject to gravity - fall, bounce etc.  Prime candidate for particle effects rather than a compiled graphic.

I prefer lines rather than individual dots, as that's how you generally perceive them.  You can do that by interpolating the current and previous position and drawing a line, or just having a few rotations and working out which is appropriate. 

[Science: Because their surface area is large but their mass is small, they oxidise very quickly which produces the heat that makes them glow. Or something like that.]

Offline jahasaja

  • 0010
  • *
  • Posts: 120
  • Karma: +0/-0
    • View Profile

Re: Metal on Metal sparks

Reply #6 on: July 15, 2014, 03:55:01 pm
Thanks for all the good suggestions.

Yeah I ended up coding it into the game. I Did not use lines but just pixels that gets more and more transparent.

I tried to capture a video of it to show but the frame-rate became to bad (used camstudio), If anybody know a good video program for you own screen I can give it another try.. But I guess it is not pixelart any more?

Offline PixelPiledriver

  • 0011
  • **
  • Posts: 997
  • Karma: +6/-0
  • Yo!
    • View Profile
    • My Blog

Re: Metal on Metal sparks

Reply #7 on: July 15, 2014, 07:44:02 pm
And knowing that it is, we seek what it is... ~ Aristotle, Posterior Analytics, Chapter 1

Offline jahasaja

  • 0010
  • *
  • Posts: 120
  • Karma: +0/-0
    • View Profile

Re: Metal on Metal sparks

Reply #8 on: July 16, 2014, 10:08:17 am
Thanks (again) PixelPiledriver!

okay so here is my try from ingame (the game is WIP!!!!!)

Offline Gil

  • 0100
  • ***
  • Posts: 1543
  • Karma: +1/-0
  • Too square to be hip
    • http://pixeljoint.com/p/475.htm
    • View Profile
    • My Portfolio

Re: Metal on Metal sparks

Reply #9 on: July 16, 2014, 10:21:58 am
In this case, you might be better off with particle effects for even more dynamic sparks, but it already looks fine now.