forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[OSlib] Few questions

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
nDEV



Joined: 13 Apr 2007
Posts: 48

PostPosted: Fri Apr 13, 2007 1:32 am    Post subject: [OSlib] Few questions Reply with quote

Hello!
Im using this great library to write a small game, and now its time to create a few animated characters but i have no idea how to do it in oslib.
What i want is to create animations at a given position.
For example:

void make_anime(int x,int y)
{

c = new animation(x,y)
return...
}

Any ideas how to do it?

Also , what's the use of centerX & Y?


Thanks.
Back to top
View user's profile Send private message
nDEV



Joined: 13 Apr 2007
Posts: 48

PostPosted: Fri Apr 13, 2007 5:17 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
Yodajr



Joined: 24 Sep 2005
Posts: 13

PostPosted: Fri Apr 13, 2007 9:04 pm    Post subject: Reply with quote

Animations ? try this : http://www.playeradvance.org/forum/showthread.php?t=2178
(it is in french, but easy to understand with google translation)

CenterX & Y defines the center of the image. By default, they are at the upper left corner of the image.
If you try to rotate the image for example, the image will rotate around his center... try, you will understand.
_________________
Tutorials about OSLib here
Back to top
View user's profile Send private message
nDEV



Joined: 13 Apr 2007
Posts: 48

PostPosted: Sat Apr 14, 2007 3:55 am    Post subject: Reply with quote

Thanks , " oslSetImageTileSize" is what i need.
But still , i have no idea how to create a new image each time....any ideas?
Back to top
View user's profile Send private message
Yodajr



Joined: 24 Sep 2005
Posts: 13

PostPosted: Sat Apr 14, 2007 4:48 am    Post subject: Reply with quote

What you don't understand in the tuto ?
_________________
Tutorials about OSLib here
Back to top
View user's profile Send private message
nDEV



Joined: 13 Apr 2007
Posts: 48

PostPosted: Sat Apr 14, 2007 6:43 am    Post subject: Reply with quote

Well , i can do the animation , but i need to create a new object every time..

For example :

Each time one enemy is about to die i want to play the animation at his current position(i know how to this) , but the problem is that each time i kill an enemy the animation will just keep moving at different positions.
So , i need a way to create a new animation every time..!!
Back to top
View user's profile Send private message
Yodajr



Joined: 24 Sep 2005
Posts: 13

PostPosted: Sat Apr 14, 2007 9:19 am    Post subject: Reply with quote

Sorry, I can't help you, I do not understand what you want :/
_________________
Tutorials about OSLib here
Back to top
View user's profile Send private message
nDEV



Joined: 13 Apr 2007
Posts: 48

PostPosted: Sat Apr 14, 2007 7:52 pm    Post subject: Reply with quote

What i want is to create a new instance of the object dynamically


Ce que je veux doit créer un nouvel exemple de l'objet dynamiquement(by babel fish)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group