![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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. ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
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) |
|
|
|
|
|
#3 |
![]() |
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 |
|
|
|
|
|
#4 |
![]() ![]() Developer
|
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.. |
|
|
|
|
|
#5 |
![]() Raining
My Mood:
Join Date: Jun 2005
Real First Name: Daniel
Location: In The Fog...
Just Played: Persona 4
Posts: 545
Trader Feedback: 0
|
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.
__________________
|
|
|
|
|
|
#6 | |
![]() |
Quote:
__________________
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) |
|
|
|
|
![]() |
| Tags |
| animation , lua , sprite |
| Thread Tools | |
|
|