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)
Anyone?
- 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?
