| View previous topic :: View next topic |
| Author |
Message |
Pihas
Joined: 25 Oct 2008 Posts: 60 Location: Lithuania
|
Posted: Mon Mar 16, 2009 5:19 am Post subject: [Problem]Image moving x coordinate |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Mon Mar 16, 2009 6:01 am Post subject: |
|
|
| 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 |
|
 |
Pihas
Joined: 25 Oct 2008 Posts: 60 Location: Lithuania
|
Posted: Mon Mar 16, 2009 6:18 am Post subject: |
|
|
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 |
|
 |
|