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 

[Problem]Image moving x coordinate

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Pihas



Joined: 25 Oct 2008
Posts: 60
Location: Lithuania

PostPosted: Mon Mar 16, 2009 5:19 am    Post subject: [Problem]Image moving x coordinate Reply with quote

I want to make moving image x coordinate.

Code:
         int y = 50;
         int i
         for(i=30;i<120;i++)

         blitAlphaImageToScreen(0 ,0 , 26, 8, bar, [i], y);


what is wrong ? :/

I'm new at C programing, older i were programing in lua and my code looked
Quote:

while true do
screen.startDraw()
screen.clear(0)

if BarX > 350 then BarX = 130 end

BarX = BarX + 1
Image.blit(BarX,215,BootBar)


screen.endDraw()
screen.flipscreen()
screen.waitVblankStart()
end

[/qoute]
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Mar 16, 2009 6:01 am    Post subject: Reply with quote

There are already plenty of examples of this on the site. Do a little searching before asking. If you want a little hint, search for "cursortest" and you'll find not just code showing that kind of blitting but also TV support and gif handling.
Back to top
View user's profile Send private message AIM Address
Pihas



Joined: 25 Oct 2008
Posts: 60
Location: Lithuania

PostPosted: Mon Mar 16, 2009 6:18 am    Post subject: Reply with quote

I don't want to load gif i just need to move image by x corrdinate like x++ for exaple bar.png ... i need gif lib for this actions :/ ?

Founded Topics:
1)[Problem]Image moving x coordinate
2)[SOLVED] TV Out - garbage on screen?
3)GIF library
4)PSP Slim can't output double-buffered 720x480
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    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