Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / 2d street fighter game i need help !!!!

Author
Message
raixgambit
15
Years of Service
User Offline
Joined: 25th Oct 2010
Location:
Posted: 28th Jan 2011 02:41
So I am making a SF game I have movement down packed but Iam having trouble.. I want to make my action Buttons go play 3 animated frames of my spite punching:For example I want to press the spacebar and my char punches but also going through 3frames. I dent want to have to hold the spacebar down to play through-the animationM y code is Attached

do:me/repeat that again
until im done
loop
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 28th Jan 2011 14:19 Edited at: 28th Jan 2011 14:21
A method I use for my animation is to manually control the frames.

Note: The following examples uses this image.




Now in your case if you want it to perform a task when you press a button you would use a flag variable to toggle on or off an action.



You can have more than just 1 ActionFlag up to as many as you want and the same for the Animation arrays.

Derekioh
17
Years of Service
User Offline
Joined: 1st Feb 2009
Location:
Posted: 28th Jan 2011 16:52
could this same method be applied to a 3d animation, such as the different actions of a gun (reloading, shooting, movement, idle, etc.)?

Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 29th Jan 2011 00:25
@Derekioh
Yes you can use it with 3d animations, I use it with mine and it works fine.

Derekioh
17
Years of Service
User Offline
Joined: 1st Feb 2009
Location:
Posted: 29th Jan 2011 15:48
Okay, thanks. I'll try it

Login to post a reply

Server time is: 2026-07-16 12:19:48
Your offset time is: 2026-07-16 12:19:48