Forum    News    Downloads    Saved Games


Can anyone please fix? My bulletshoot coding just isnt worki

<<

Mailas

Post Mon Nov 20, 2006 5:26 pm

Can anyone please fix? My bulletshoot coding just isnt worki

My error is that the reprocessor wont come out when the bullet has been said to access the PSP menu files (for exampl,e pressing PSP_CTRL_CROSS)
  Code:
// FUNCTION TO SHOOT BULLETS//

void ShootBullets()
{
   if (pad.Buttons & PSP_CTRL_RIGHT) {
      if (!crossPressed) {
         if (//check the direction of the player//) {
            Pistol[currentBullet].Setup(5, //the direction you want to shoot it//);
         } else if (//if the direction is the other one//) {
            Pistol[currentBullet].Setup(-5, //the direction you want to shoot it//);   
         }
         
            if (pad.Buttons & PSP_CTRL_LEFT) {
      if (!crossPressed) {
         if (//check the direction of the player//) {
            Pistol[currentBullet].Setup(5, //the direction you want to shoot it//);
         } else if (//if the direction is the other one//) {
            Pistol[currentBullet].Setup(-5, //the direction you want to shoot it//);   
         }

Anyone?
<<

ZeroShift

User avatar

Experienced Brewer
Experienced Brewer

Posts: 196

Joined: October 06 2006

Location: United States

Thanks given: 0

Thanks received: 0

Post Mon Nov 20, 2006 6:24 pm

Sorry, I'm normally good with troubleshoots in programming, but my skills in PSP programming are lacking.

What exactly does the PSP do when this error happens (or if it gives it to you when in compiles)
Image
Image
YAAY! My PSPs back from the dead! Wait.....ZOMBIE!!!
<<

Mailas

Post Mon Nov 20, 2006 7:12 pm

No errors on the batch file, but it doesnt show the bullets performing the quivelent action when the button is pressed.

Return to PlayStation Portable

Who is online

Users browsing this forum: No registered users and 383 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for blacklist.org.