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 Discussion / Paper Mario animation help?

Author
Message
The Dark Padawan
21
Years of Service
User Offline
Joined: 5th Aug 2003
Location: USA!
Posted: 23rd Sep 2003 02:47
Hi its me again,
I'm now making my first true project, a paper mario style game and I was wondering how I would animate a 3d plain for a character. Is it similiar to 2d animation?
Code snippets would be nice
thanx

"Nintendo GameCube is the best" and " I am nearing the day I become a Jedi" - The Dark Padawan
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 23rd Sep 2003 03:07
When you model it (asuming you do not use plains, lol) you would ususally animate it. Then withen db there are commands like play object and loop object for animations.

Got a knack for finding secrets??? Jingot Racing --- A new brand of Racing --- Only from Nightwatch Studios
"hey, it's tomorrow" --- Hamish
andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 23rd Sep 2003 03:25 Edited at: 23rd Sep 2003 03:26
The best way would probably be to draw the character (2d) in different animations, and apply it to the plain, with transparency on.

"All programmers are playwrites and all computers are lousy actors" -Anon
The Dark Padawan
21
Years of Service
User Offline
Joined: 5th Aug 2003
Location: USA!
Posted: 24th Sep 2003 00:28 Edited at: 24th Sep 2003 00:32
@andrew11
can you supply me with a code snippet?
Oh I like your avatar and sgt. picture
a Nintendo fan are we?
@Mattman
read the post over again I
think you didn't catch th fact I am trying
to make a paper mario type game you know a 3D plain textured to look like a character not a model
sorry if I offended you

"Nintendo GameCube is the best" and " I am nearing the day I become a Jedi" - The Dark Padawan
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 24th Sep 2003 00:31
no offense taken dude. You are a lot politer the mose people around here.

Hmm, I never played PM much,andrew has the idea. I don't use plains, so I don't have teh codez

Got a knack for finding secrets??? Jingot Racing --- A new brand of Racing --- Only from Nightwatch Studios
"hey, it's tomorrow" --- Hamish
KNau
22
Years of Service
User Offline
Joined: 25th Nov 2002
Location: Canada
Posted: 24th Sep 2003 00:38 Edited at: 24th Sep 2003 00:40
Let's say you have a 4 frame walk animation stored as 4 seperate JPEGs (for simplicity sake).

Start by loading the 4 frame walk images like you would any other image:
LOAD IMAGE "walk_01.jpg",1:LOAD IMAGE "walk_02.jpg",2
LOAD IMAGE "walk_03.jpg",3:LOAD IMAGE "walk_04.jpg",4

Create your plane object and position it (I'm assuming you know how to do this already).

To cycle the animations you basically use a variable to keep track of what frame and increase it's value each LOOP cycle. Like this:

DO
INC frame
IF frame > 4 THEN frame = 1
TEXTURE OBJECT 1,frame
SYNC
LOOP

In all likelihood the animation frames will run by too fast so you can either use a timer control or another variable to slow it down:

DO
IF TIMER() > next_update
INC frame
IF frame > 4 THEN frame = 1
TEXTURE OBJECT 1,frame
next_update = TIMER() + 100
ENDIF
SYNC
LOOP

That gets you started with animation. Now it's a matter of only animating the object when the movement keys are pressed, which I assume you know how to do. Does that help at all?

http://www.canceriannewmedia.com
The Dark Padawan
21
Years of Service
User Offline
Joined: 5th Aug 2003
Location: USA!
Posted: 24th Sep 2003 00:48
Thanks KNau, and don't worry I knew how to do everything except the animation part

"Nintendo GameCube is the best" and " I am nearing the day I become a Jedi" - The Dark Padawan

Login to post a reply

Server time is: 2025-05-20 17:17:21
Your offset time is: 2025-05-20 17:17:21