View Single Post
  #1 (permalink)  
Old 07-15-2006, 01:21 AM
Static Static is offline
Senior Member
 
Join Date: Jan 2006
Location: C:\WINDOWS\system32\win546dbg.exe
Posts: 477
Points: 2.35
Donate
Simple Animation Source Code =]

Ok this source code includes a simple image on how to work around moving a sprite around the screen. I have not tested it, but in theory it should work. Anyways you can download the source bellow, please comment on the first 4-5 lines of the source. thank you, and enjoy making games out of this !

Download source here
Thank you admin for a little hosting on psp3d

Special Notes -
Let's say you want to change the background once the sprite hits a spot in the image. All you would have to do is make an if code as like.

Code:
while(1) { sceCtrlReadBufferPositive(&pad, 1); if(darkx = 325, darky = 23) { pspDebugScreenClear(); blitAlphaImageToScreen(0 ,0 ,32 , 32, level2, 480, 272); blitAlphaImageToScreen(0 ,0 ,32 , 32, buddy, darkx, darky + 5); flipScreen(); } }
darkx and darky are declared ints in the source code. If you would like me to release more sources just post ! I'm a friendly member of the PSP3D community now; willing to help pretty much anyone. Thanks to my buddy.
__________________


Reply With Quote