Hey! It worked, but...
I thought something different, there'll be lots of weapons (like shotguns, handguns, machine-guns...) and i would make a lot of bullets characters (and characters are a real need on my game, wich will gonna have few rooms with lots of characters), so i thought its better work with the x, y and z coordinates:
int id = 1; // player character id = 1
int shot; // weapon variable
function repeatedly_execute() {
// the normal characters id: 1, 2, 3, 4 , 5
while (id>=5) {
if (IsKeyPressed(404) == 1) {
if((shot==1) || (shot==2)) {
if ((character[id].y == cEgo.y) && (id!=0)) {
character[id].ChangeView(6);
}
}
}
}
but it doesn't seems to work. What i made wrong?
obs: i tried use the && in the "if" sentence above, but ags displayed : Parse error near && PE04.