Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Help with TGF
United States
BubbleMan
Posted: Oct 24 2005, 09:53 PM
Quote Post


aka Aku
[*][*][*]

Group Icon
Group: Members
Posts: 18507
Member No.: 260
Joined: 27-January 04

Status: (0d) [--]


I've got a static engine working and everything but theres a problem.

in my game you will be able to have a weapon and swing it at enemies.

the problem is that whenever the animation plays (the swinging animation)

it happens really fast. In the blink of an eye the animation is finished. this doesn't happen with any other animation. The walking animation goes at the speed its supposed to, but the swinging animation doesnt. any ideas why?

i've already checked the animtion speed. If i put the animation speed to 1, it still goes just as fast.


--------------------
user posted image
PMEmail PosterUsers WebsiteAOLMSN
Top
Canada
DJ Yoshiman
  Posted: Oct 24 2005, 10:18 PM
Quote Post


My post is to the right.
[M][S][*][*][*]
[*][*][*][*][*]
[*][*]

Group Icon
Group: Moderators
Posts: 18175
Member No.: 141
Joined: 16-November 03

Status: (0d) [--]


If you have a static engine, it's assumed that you have events for changing his animation to stopped if he's not moving or walking when he moves.

So, obviously, when you have an event that says when fire 2 is pressed, change his animation to swing.


Unfortunately, you have an event that's constantly changing the animation to stopped or walking if he's moving.


So, either set a value to 1 when the user presses fire 1 and add the event "(whatever variable you chose) is different than 1" to both the stopped and walking animation events. Set it back to 0 when the animation finishes.


Your other option is to just add an event that says "swing animation is not playing" to the walking and stopped events, but the other way ensures it will work.


--------------------

user posted image

The Music of DJ Yoshiman - Official Website

Latest News:
I Like To Bonk It Bonk It

NUMBER OF TRIALS:
12
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
United States
BubbleMan
Posted: Oct 24 2005, 10:31 PM
Quote Post


aka Aku
[*][*][*]

Group Icon
Group: Members
Posts: 18507
Member No.: 260
Joined: 27-January 04

Status: (0d) [--]


ok it works now. thanks yoshiman =D


--------------------
user posted image
PMEmail PosterUsers WebsiteAOLMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0328 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.21 ]