|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 8 posts ] |
|
Author |
Message |
1239the
Joined: Fri Mar 21, 2008 10:48 pm Posts: 46 Location: QLD, Australia
|
Animating Sprites
Hallo again.
I'd like to know if there's a method for animating sprites such as weapons and magazines. So far I have the "Weapon001, Weapon002" thing down, I just don't know what code to use to make it work.
Cheers.
|
Wed Mar 26, 2008 8:21 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Animating Sprites
It depends on what you're trying to animate.
In, for example, HDFirearms, there's only two frames. What the gun looks like shooting, and what it looks like not shooting.
Most object types, however, play through whatever sprites they are given. To make objects like this animated, simply make all the required frames, and then set the framecount to however many images there are. Remember that 000 counts as one frame, too.
|
Wed Mar 26, 2008 8:29 am |
|
|
1239the
Joined: Fri Mar 21, 2008 10:48 pm Posts: 46 Location: QLD, Australia
|
Re: Animating Sprites
Grif wrote: .. Most object types, however, play through whatever sprites they are given. To make objects like this animated, simply make all the required frames, and then set the framecount to however many images there are. Remember that 000 counts as one frame, too. I did that, and there was still no animation. Don't I have to add a line about the framerate or something?
|
Wed Mar 26, 2008 8:35 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Animating Sprites
Framerate only applies to MOSParticles and does odd things even then.
What are you trying to animate?
|
Wed Mar 26, 2008 8:36 am |
|
|
1239the
Joined: Fri Mar 21, 2008 10:48 pm Posts: 46 Location: QLD, Australia
|
Re: Animating Sprites
Grif wrote: Framerate only applies to MOSParticles and does odd things even then.
What are you trying to animate? A weapon magazine. Simple two-state animation with blinking lights.
|
Wed Mar 26, 2008 8:37 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Animating Sprites
Hmm.
I don't know whether the game supports animating magazines.
It seems not to, though.
I can't really help you much. Someone else might have run into the problem and devised a solution, but it may just not be possible.
|
Wed Mar 26, 2008 8:57 am |
|
|
1239the
Joined: Fri Mar 21, 2008 10:48 pm Posts: 46 Location: QLD, Australia
|
Re: Animating Sprites
Grif wrote: Hmm.
I don't know whether the game supports animating magazines.
It seems not to, though.
I can't really help you much. Someone else might have run into the problem and devised a solution, but it may just not be possible. Alright, thanks anyway Grif. Hopefully it'll get implemented in a later build.
|
Wed Mar 26, 2008 8:58 am |
|
|
octyl
Joined: Fri Aug 31, 2007 3:57 am Posts: 227 Location: Canada
|
Re: Animating Sprites
Could you just make the magazine miniscule with a mass object attached to it? or can you not attach things to magazines.
|
Wed Mar 26, 2008 4:38 pm |
|
|
|
|
Page 1 of 1
|
[ 8 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|