Conditional action question

Talk about making games.

Conditional action question

Postby scottieb » Mon Nov 17, 2008 10:53 am

Hi I want to enable a certain directional velocity movement when two things occur at the same time. 1. when a key is pressed and 2. during a certain frame. I want to limit this event to those two conditions. any suggests on how I could do this.
scottieb
 
Posts: 7
Joined: Fri Nov 23, 2007 3:01 am
Score: 0 Give a positive score

Re: Conditional action question

Postby DarkParadox » Mon Nov 17, 2008 9:44 pm

Use Key down event and Animpos.

on key down:
Code: Select all
if(animpos == frame)
{
    actions here
}
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest