October 03, 2023, 09:38:03 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Latest WME version:
WME 1.9.1
(January 1st, 2010) -
download
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Walk and run animation
« previous
next »
Pages: [
1
]
Print
Author
Topic: Walk and run animation (Read 3603 times)
0 Members and 1 Guest are viewing this topic.
Krosad
Anate Studio
Occasional poster
Karma: 2
Offline
Gender:
Posts: 97
anatestudio.com
Walk and run animation
«
on:
August 01, 2012, 08:13:14 PM »
Hi,
By default actor have walk animation. How to add run animation and associate its activation with some button?
Logged
Spellbreaker
Supporter
Frequent poster
Karma: 4
Offline
Gender:
Posts: 376
Re: Walk and run animation
«
Reply #1 on:
August 01, 2012, 09:16:16 PM »
There's no run animation by default. You simply create a run animation in the actor file. If you want to "run" on rightclick for example, you can do something like
on "RightClick" {
actor.WalkAnimName = "run"
}
on "LeftClick" {
actor.WalkAnimName ="walk"
}
Greets,
Spellbreaker
Logged
Apeiron Studios
http://www.apeironstudios.com
Krosad
Anate Studio
Occasional poster
Karma: 2
Offline
Gender:
Posts: 97
anatestudio.com
Re: Walk and run animation
«
Reply #2 on:
August 01, 2012, 09:40:54 PM »
and how to add some other animation after stop running?
«
Last Edit: August 02, 2012, 08:23:50 AM by Krosad
»
Logged
Spellbreaker
Supporter
Frequent poster
Karma: 4
Offline
Gender:
Posts: 376
Re: Walk and run animation
«
Reply #3 on:
August 02, 2012, 03:46:07 PM »
thats a bit more complicated if you need to "hit" a specific frame...you could start looking at actor.IsWalking() for example to check if he is walking . then you could create an event in your sprite to "jump" to a specific other frame or play another animation
Logged
Apeiron Studios
http://www.apeironstudios.com
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Walk and run animation