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!

[LUA] sprite animation

This is a discussion on [LUA] sprite animation within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; WHEW! i finally ran into a problem with LUA. everything was easy and going good until NOW. yup sprite animation. ...

Reply
 
LinkBack Thread Tools
Old 08-05-2008, 09:31 PM   #1
 
zeroxorxdiexskater's Avatar
 
Join Date: Sep 2006
Location: 3.03OE-C
Posts: 1,098
Trader Feedback: 0
Default [LUA] sprite animation

WHEW! i finally ran into a problem with LUA. everything was easy and going good until NOW. yup sprite animation. i looked around and saw that sprite animation was very long and hard with LUA and animlib fixed that. so i downloaded that, got my spritesheet to load into the program but now i cant figure out how to get it to animate when i move. i looked at the animlib.lua file and everything and i cant figure out how to animate it like i want. it seems to only be for animation on its own with a delay on the animation or how many times it loops.
__________________
CuRrEnT fIrMwArE [SIZE="3"][FONT="Times New Roman"][COLOR="Red"][B][I][U]3.90 M33-2 SLIM TA-085V2 with TimeMachine 0.1[/U][/I][/B][/COLOR][/FONT][/SIZE]
[WIP] Trogdor! (ON HOLD converting to LUA, but almost caught up)
zeroxorxdiexskater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-05-2008, 09:39 PM   #2

 
Mr_Shizzy's Avatar
 
Join Date: Aug 2007
Posts: 567
Trader Feedback: 0
Default

Thy this:
Attached Files
File Type: zip animLibDaaa_0.3.zip‎ (60.0 KB, 29 views)
__________________
PSP MODEL: PSP SLIM 2000 TA-085v2
Custom Firmware: 5.50 GEN-D2
Mr_Shizzy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-05-2008, 09:46 PM   #3
 
zeroxorxdiexskater's Avatar
 
Join Date: Sep 2006
Location: 3.03OE-C
Posts: 1,098
Trader Feedback: 0
Default

SWEET! this is what i need
thanks man
and ur avatar is boss!
-=Double Post Merge =-
new problem
trying to use this line ANIM.newSpriteSheetAnim(f ile, nWidth, nHeight, delay, maxLoops)

and i set it up like this for a test
ANIM.newSpriteSheetAnim(i mages/player.png, 74, 93, 0, 0)


but whenever i use it it get an error

Error: SCRIPT.LUA:80: attempt to index global 'player' (a nil value)

not sure what to do, played with it a little but i got nothin
__________________
CuRrEnT fIrMwArE [SIZE="3"][FONT="Times New Roman"][COLOR="Red"][B][I][U]3.90 M33-2 SLIM TA-085V2 with TimeMachine 0.1[/U][/I][/B][/COLOR][/FONT][/SIZE]
[WIP] Trogdor! (ON HOLD converting to LUA, but almost caught up)

Last edited by zeroxorxdiexskater; 08-05-2008 at 10:24 PM.. Reason: Automerged Doublepost
zeroxorxdiexskater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-05-2008, 11:59 PM   #4

Developer
 
Nielkie's Avatar
 
Join Date: Jul 2006
Posts: 549
Trader Feedback: 0
Default

You need to put strings in quotation marks.

But please, stop coming here with every little tiny problem you encounter. Spend at least 5 minutes reading around and thinking about it. I'm starting to wish vBulletin had a "block user" function. EDIT: It does! Wonderous!

Or at least post such minuscule questions in the designated help threads so you don't clog up the forum like you are doing now (Every day for the last week you have at least 2 threads made by you with tiny questions on the first page of the forum).
__________________



Last edited by Nielkie; 08-06-2008 at 12:37 AM..
Nielkie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-06-2008, 12:27 AM   #5
Raining
 
wicked_fable's Avatar
 
My Mood: Relaxed
Join Date: Jun 2005
Real First Name: Daniel
Location: In The Fog...
Just Played: Persona 4
Posts: 545
Trader Feedback: 0
Default

Geez, you are already using Animlib, you didn't even really learn how sprite animation works. You could have spent some time like Nielkie said figuring it out yourself. It took me a few days to figure out hot to animate a sprite by myself and it was a good learning experience. If you can figure out the solution to your problems by yourself you will be able to better understand exactly what is going on much more than you would by just asking and having someone tell you the answer.
__________________
wicked_fable is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-06-2008, 08:34 AM   #6
 
zeroxorxdiexskater's Avatar
 
Join Date: Sep 2006
Location: 3.03OE-C
Posts: 1,098
Trader Feedback: 0
Default

Quote:
Originally Posted by wicked_fable View Post
Geez, you are already using Animlib, you didn't even really learn how sprite animation works. You could have spent some time like Nielkie said figuring it out yourself. It took me a few days to figure out hot to animate a sprite by myself and it was a good learning experience. If you can figure out the solution to your problems by yourself you will be able to better understand exactly what is going on much more than you would by just asking and having someone tell you the answer.
well i already know how sprite animation works in C and if animlib is designed to make sprite animation easier why not use it? and my problem was that i was reading the animlib.lua file and was typing it up and filing in the blanks and the file didnt have the quotes so i forgot about it
__________________
CuRrEnT fIrMwArE [SIZE="3"][FONT="Times New Roman"][COLOR="Red"][B][I][U]3.90 M33-2 SLIM TA-085V2 with TimeMachine 0.1[/U][/I][/B][/COLOR][/FONT][/SIZE]
[WIP] Trogdor! (ON HOLD converting to LUA, but almost caught up)
zeroxorxdiexskater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
animation , lua , sprite

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 07:43 PM.



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