Data Realms Fan Forums
http://forums.datarealms.com/

Sprite Help Thread
http://forums.datarealms.com/viewtopic.php?f=1&t=18195
Page 2 of 49

Author:  CrazyMLC [ Mon Mar 22, 2010 2:02 am ]
Post subject:  Re: Sprite Help Thread

Also, remember to always pick a 'light source', meaning where the light comes from, so you can decide which parts are darker or lighter, because that's an important step in making something look real/3D.

Author:  MrMcdeath [ Mon Mar 22, 2010 2:16 am ]
Post subject:  Re: Sprite Help Thread

can somebody please point me to the thread that shows how to animate a sprite? :???:

Author:  LowestFormOfWit [ Mon Mar 22, 2010 3:34 am ]
Post subject:  Re: Sprite Help Thread

MrMcdeath wrote:
can somebody please point me to the thread that shows how to animate a sprite? :???:


I wasn't aware we had one, though I could -make- one if we needed.

Author:  MrMcdeath [ Mon Mar 22, 2010 3:52 am ]
Post subject:  Re: Sprite Help Thread

I tried searching for one but came up blank. Of course I haven't been on this forum for that long and im sure people who have been here longer may remember it...

Author:  Duh102 [ Mon Mar 22, 2010 3:58 am ]
Post subject:  Re: Sprite Help Thread

There isn't that much to it, is there? I don't profess all that much experience with animations, but to the best of my knowledge you simply make frames, name them properly (sprite000.bmp, sprite001.bmp...) and set an animmode, yes?

Author:  MrMcdeath [ Mon Mar 22, 2010 4:00 am ]
Post subject:  Re: Sprite Help Thread

I dunno... never did this kind of stuff before. I don't really know how to script anything and/or animate stuff...

Author:  CrazyMLC [ Mon Mar 22, 2010 4:14 am ]
Post subject:  Re: Sprite Help Thread

SpriteAnimMode

* 0 = NOANIM - No animation.
* 1 = ALWAYSLOOP - Loops the frames in the order they are in.
* 2 = ALWAYSRANDOM - Picks random frames to show.
* 3 = ALWAYSPINGPONG - Loops the frames by going from the first frame to the last one, then back again.
* 4 = LOOPWHENMOVING - I haven't tested this, but it seems self-explanatory.
* 5 = LOOPWHENOPENCLOSE - It loops when opening or closing. Mainly for rockets.
* 6 = PINGPONGOPENCLOSE - It ping-pongs (See ALWAYSPINGPONG) when opening or closing. Mainly for rockets.
"SpriteAnimMode = 4
SpriteAnimDuration = 500" - in miliseconds, I think.

Make your sprites, starting with sprite000.bmp, and continue making frames until you are satisfied.

Once you have your frames, set your FrameCount in the .ini to however many frames you have.
"FrameCount = 2"

You never have to set the SpriteAnimMode, but you can do it if you want to change how the frames play out.

If you have 1 frame you just name the file sprite.bmp.

Author:  CaveCricket48 [ Mon Mar 22, 2010 4:25 am ]
Post subject:  Re: Sprite Help Thread

I had a topic about this sprite a while ago but didn't get many replies.

Any tips you have for me, CrazyMLC?

Image
(Half-Life 2 Gravity Gun)

The top row is the current one, lower rows just show progress.

Author:  roflcopterz [ Mon Mar 22, 2010 4:28 am ]
Post subject:  Re: Sprite Help Thread

theres a limit to the number of frames it can have

Author:  CaveCricket48 [ Mon Mar 22, 2010 4:30 am ]
Post subject:  Re: Sprite Help Thread

roflcopterz wrote:
theres a limit to the number of frames it can have

What are you talking about?

Author:  Coops [ Mon Mar 22, 2010 7:22 am ]
Post subject:  Re: Sprite Help Thread

Just... Not happy with it, it feels like its missing something.. Could any of you two try and make it look... complete?

(going for a Bullpup design/LMG-ish Look)

Attachment:
LMG.bmp [1.41 KiB]
Not downloaded yet


Thx

Author:  dragonxp [ Mon Mar 22, 2010 11:07 pm ]
Post subject:  Re: Sprite Help Thread

CaveCricket48 wrote:
roflcopterz wrote:
theres a limit to the number of frames it can have

What are you talking about?


Guns have a funny framelimit, they cannot have more than two frames, [even is sprite animmode is = 1].
Exception: Unless it has a spinup variable.

Way around: Attachable.

Author:  CaveCricket48 [ Tue Mar 23, 2010 12:39 am ]
Post subject:  Re: Sprite Help Thread

Oh, I see what he was thinking. See, the orange and blue versions aren't the same gun, the orange will be the standard gravity gun while the blue is the dark-energy charged one. Sorry about the confusion.

Author:  LowestFormOfWit [ Tue Mar 23, 2010 1:52 am ]
Post subject:  Re: Sprite Help Thread

dragonxp wrote:
CaveCricket48 wrote:
roflcopterz wrote:
theres a limit to the number of frames it can have

What are you talking about?


Guns have a funny framelimit, they cannot have more than two frames, [even is sprite animmode is = 1].
Exception: Unless it has a spinup variable.

Way around: Attachable.


A better way around is Lua. Actually, Lua is probably the -best- way to handle any animations apart from simple looping ones.

Author:  Contrary [ Tue Mar 23, 2010 2:09 am ]
Post subject:  Re: Sprite Help Thread

Coops9753 wrote:
going for a Bullpup design/LMG-ish Look

Here you go. I think the main problem was the barrel length. LMG's generally have fairly long barrels, as mobility is no longer a concern. Bullpups especially can afford to have hella long barrels as the magazine/clip (whatever don't yell at me) is behind the trigger. I also lengthened the mag/clip as this an LMG, and it shold have a large ammo capacity.

I made a quick edit so you can see what I mean.

I didn't really like how the back was as high as the front rails, it gave it a bunched up look which can be good or bad depending on the rest of your faction. I think this lankier look goes better with your standard trooper (the one I like the most) so take from this what you want.

Attachments:
halp2.bmp [60.8 KiB]
Not downloaded yet

Page 2 of 49 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/