RUN!!!!!

Non-platform specific questions.

RUN!!!!!

Postby hobgoblin » Mon Mar 15, 2004 4:32 pm

okey dokey....

how do i make my actor walk?
how do i make the legs with 3 animations?

for exemple...
i allwasy use actors that can fly or that doenst have legs
so...

stoppedActor
key down
change animation to flyingForward
key up
change animation to stoppedActor

but now i need the actor to walk and change the animation 3 times
(stopped, leftfoot and rightfoot)
__________

i'm noob =P
__________
hobgoblin
 
Posts: 97
Joined: Sat Feb 21, 2004 5:10 pm
Location: BEHIND YOU!!!
Score: 0 Give a positive score

Postby phractus » Mon Mar 15, 2004 5:19 pm

try just adding the walking animations as a single animation(or several for different directions) and then use animation start/stop with key up/key down events. It should work the same as your flyers(for the most part).
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby ingsan » Mon Mar 15, 2004 5:38 pm

Yes but if ur sprites (both actor with and without legs) are not with the same height and width, this means that the pivot points will not be the same and whenever u ChangeAnimation from WithoutLegs to WithLegs, there would be bugs and ur animations would not be smooth...

Two possible solutions :

    Either u render both sprites (WithoutLegs and WithLegs) with similar dimensions and then u just ChangeAnimation on specific action

    Or u use Visibility True/False on the Legs, which, at CreateActor, has AnimationDirection Stopped and on Visibility True, AnimationDirection Forward
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby hobgoblin » Tue Mar 23, 2004 1:51 am

ooookkkkk

i think i know how to do it, but i don't know how to do it!

:shock:

let's try another thing(i don't know if i asked before...)

i want to make my actor glow

so i have animation blue and red

each 1 second, che actor changes red to blue and to red again

is that possible?
__________

i'm noob =P
__________
hobgoblin
 
Posts: 97
Joined: Sat Feb 21, 2004 5:10 pm
Location: BEHIND YOU!!!
Score: 0 Give a positive score

Postby Just4Fun » Tue Mar 23, 2004 3:49 am

1.Add Actor: Actor1
2. Add 2 animations to Actor1: glow1 and glow2
3. In actor:Actor1
Create Actor Event
Add Action Create Timer
Create your timer:glowtime--> 500ms-->periodic
4. In Actor1
Add Event-->timer
pick your timer
Add Action --->change animation--->pick yor animation

This should help you get started....
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby hobgoblin » Tue Mar 23, 2004 9:37 pm

ok...

the red changes to blue, but how do i do to make the blue change to red again?
__________

i'm noob =P
__________
hobgoblin
 
Posts: 97
Joined: Sat Feb 21, 2004 5:10 pm
Location: BEHIND YOU!!!
Score: 0 Give a positive score

Postby ingsan » Tue Mar 23, 2004 10:18 pm

Create another timer (Call it "ReturnToRed")
ReturnToRed Timer >> 500 ms >> periodic (like the Glow Timer)

On Timer Event, Change Animation to Red.
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby hobgoblin » Wed Mar 24, 2004 9:07 pm

ingsan wrote:Create another timer (Call it "ReturnToRed")
ReturnToRed Timer >> 500 ms >> periodic (like the Glow Timer)

On Timer Event, Change Animation to Red.


but it won't work
becouse after 500 ms the actor will changebule and changered at the same time

so i think i have to create 2 actors aftter 500ms destroy itself and create the other color
__________

i'm noob =P
__________
hobgoblin
 
Posts: 97
Joined: Sat Feb 21, 2004 5:10 pm
Location: BEHIND YOU!!!
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest