Page 1 of 6 12345 ... LastLast
Results 1 to 10 of 55

Thread: Noob Question

                  
   
  1. #1
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default Noob Question

    this is probaly very easy to answer and very noobie, but how do you make stuff move(like an image)with C for the psp???

  2. #2
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    85

    Default

    Change where you blit the image on the screen. Store these co-ordinates in variables, read the input of the controls and change the value of the co-ordinates accordingly. Then finally use these co-ordinates to blit the image on the screen.

  3. #3
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    ok thank you very much
    EDIT::It moves, but it strecthes the picture, like i would need to remove the previous ones how do i do that?

  4. #4
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    67

    Default

    Quote Originally Posted by thehumanidiot View Post
    ...It moves, but it strecthes the picture, like i would need to remove the previous ones how do i do that?
    try clearing the screen (or refreshing the background image) before blitting the sprite to its new position.

  5. #5
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    how do i do that?

  6. #6
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    67

    Default

    Quote Originally Posted by thehumanidiot View Post
    how do i do that?
    draw a filled rectangle the size of the screen, or blit the background image, before you blit the sprite.

  7. #7
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    yes i know that would work, but couldn't that overload the psp's RAM after a while?
    EDIT:: i actually tried that but it didn't work, how do you clear the screen?

  8. #8
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    67

    Unhappy

    Quote Originally Posted by thehumanidiot View Post
    it didn't work
    So sad my suggestions couldnt help you get stuff moving

  9. #9
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    stop making fun of me, is there a code that willl just clear the screen?

  10. #10
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    ok SOMEONE must know how to do this, i have seen plenty of homebrew where people ACTUALLY MOVE!(amazing isn't it?)so plz help me i want to start making psp games!

Page 1 of 6 12345 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •