|
2 registered members (Grant, AndrewAMD),
911
guests, and 9
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Animations [damn again]
[Re: 3run]
#338965
08/23/10 10:54
08/23/10 10:54
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
Serious User
|
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
Let's say you use a String to store "state". Each state is stand, fire, reload, etc. so When I do left click I to to attack state, plays the state animation and when it's bigger than 100 then it goes to the blend state, blend between the attack animation and the stand animation, when the value is bigger than 100, return to state stand.
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: Animations [damn again]
[Re: 3run]
#338975
08/23/10 12:14
08/23/10 12:14
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
Serious User
|
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
I'm not sure how is the rest of the weapon code. When the shoot function is playing do you stop playing the idle animation in the other loop?
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: Animations [damn again]
[Re: painkiller]
#338977
08/23/10 12:24
08/23/10 12:24
|
Joined: May 2009
Posts: 5,365 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,365
Caucasus
|
I don't have idle animation  All animations (draw,shooting,reloading) last frames are the same, so weapons animations ends the same (thats why I don't need "idle"). My weapon code is simple, each weapon has its own action, in while loop of each weapon, I call shooting function, if weapons ammo more than 0 and if weapons ready var equals to 1 (inside the shooting function, I set weapons ready var to 0 and after I put wait(-0.1) (depending on the weapon type, if automatic, number is smaller, if not then bigger), and after wait I make weapons ready var equals to 1). I call animation function from above, right before the wait in shooting function. That all my weapons script...
|
|
|
Re: Animations [damn again]
[Re: 3run]
#338978
08/23/10 12:28
08/23/10 12:28
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
Serious User
|
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
mm if all the weapons animations ends and start with the same frame, why do you need blend?
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
|