QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

animation in lua help

This is a discussion on animation in lua help within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; does anyone know how i can animate a player while walking??? (i.e. making the legs move when he moves??) i ...

Reply
 
LinkBack Thread Tools
Old 04-11-2007, 09:24 PM   #1
Enter Custom Title
 
waywardson's Avatar
 
Join Date: Mar 2007
Posts: 547
Trader Feedback: 0
Default animation in lua help

does anyone know how i can animate a player while walking???
(i.e. making the legs move when he moves??)
i kinda get how but im not shure how to code it

Last edited by waywardson; 04-11-2007 at 09:37 PM..
waywardson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-11-2007, 09:36 PM   #2


Retired PSP Developer
 
MániácX's Avatar
 
Join Date: Feb 2007
Location: Canada
Posts: 407
Trader Feedback: 0
Default

you would get more help if you make the title more descriptive

lost count of the # of threads named "lua"
__________________
MániácX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-11-2007, 09:37 PM   #3
Enter Custom Title
 
waywardson's Avatar
 
Join Date: Mar 2007
Posts: 547
Trader Feedback: 0
Default

there changed it thanks
waywardson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-11-2007, 09:51 PM   #4
 
k0ud's Avatar
 
Join Date: Jan 2007
Location: beside my PC
Posts: 520
Trader Feedback: 0
Default

you need different pics of the character e.g. char with right leg up,char with left leg up,char with both legs up OM>>...)
k0ud is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-11-2007, 11:13 PM   #5
 
k0ud's Avatar
 
Join Date: Jan 2007
Location: beside my PC
Posts: 520
Trader Feedback: 0
Default

.. theres a LUA help thread on stickies btw...
k0ud is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-11-2007, 11:16 PM   #6
Enter Custom Title
 
waywardson's Avatar
 
Join Date: Mar 2007
Posts: 547
Trader Feedback: 0
Default

oh kk thanks man
waywardson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-11-2007, 11:56 PM   #7


Developer
 
daaa57150's Avatar
 
Join Date: Sep 2006
Location: france
Posts: 167
Trader Feedback: 0
Default

you should take a look at grimfate's "animlib v4" available in the download section. It's easy to use and that may exactly be what you're looking for.
I will soon release a mod of this library to enable images buffering but that animlib may be enough for you.
I don't have code to show you but there's a well made readme with the library.
Of course like ai3gtmc said, you'll need many frames for your animation.
__________________
Try my latest game:
MEGA DROPS 2

daaa57150 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-12-2007, 12:05 AM   #8

Developer
 
slicer4ever's Avatar
 
Join Date: Jul 2005
Location: everywhere
Posts: 3,357
Trader Feedback: 0
Default

like ai3 said you need a pic of legs down,1 up,other up

then an simple
if player_anima=1 then screen:blit(x,y,legs_down ) end
if player_anima=2 then screen:blit(x,y,left_leg_ up) end
if player_anima=3 then screen:blit(x,y,right_leg _up) end

i don't see whats so great about an anim lib as it's extremly simple to do
__________________
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
slicer4ever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-12-2007, 12:11 AM   #9

Developer
 
KleptoOne's Avatar
 
Join Date: Oct 2006
Location: San Diego
Posts: 177
Trader Feedback: 0
Default

animlib helps make sprite sheets easier to handle if you've never worked with them before.
__________________
Code & Concept Studio Releases:
KleptoOne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-12-2007, 12:15 AM   #10
Enter Custom Title
 
waywardson's Avatar
 
Join Date: Mar 2007
Posts: 547
Trader Feedback: 0
Default

k thanks for the help guys ill check it out
waywardson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-12-2007, 12:19 AM   #11


Developer
 
daaa57150's Avatar
 
Join Date: Sep 2006
Location: france
Posts: 167
Trader Feedback: 0
Default

Quote:
Originally Posted by slicer4ever
i don't see whats so great about an anim lib as it's extremly simple to do
libs are made to solve problems so you don't have to care about them. even simple problems. usually a lib will do better than what you would do yourself, as the dev will focus on that. plus, the lib will improve without you doing anything, just download and replace the old, and they are made to be properly separated from the rest of your code. This helps keep the code nice and readable.
One more advantage I see is that when you use a lib, if it's well spread, people reading your code will automatically understand it as they already know the functions.
I don't know if the proverb goes like this in english too, but "do not reinvent the wheel".
__________________
Try my latest game:
MEGA DROPS 2

daaa57150 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
animation , lua

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 10:04 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us