Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - gamerman

#1
the player just shoot at the direction.

The code above doesnt seems to work, the player shoot at the enemy character (who is at the same y coordinate) but nothing happens.
#2
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.
#3
I've just done what you've said... It worked  :), thanks, man
#4
It was in the right folder, and i've just tried the ogg. and vox. formats and it wont worked. Keep getting the same error message.  :-\
#5
 :)i'll gonna try it, and report on this topic if there were some problem.

Thanks!! :)
#6
There's it...

I'm trying to put some sound in my game, but it keep showing "sound sample failure cant load sound 2", and i'm using sounds that i've already used in other games (before i unistall/delete all ags files in my computer and, later, reinstall AGS again, can it be related with?), i've already tried other random sounds in mp3 format, but still getting the same error. The sounds are  wav and mp3 format. i've alredy tried other sounds but wont work. Help? Huh ???
#7
i'm making a game wich the main character has some guns, when he shot the character [bullet] go from point A to B, and if it collides with character [guy] this one dies... How do i make it work for every character?
#8
It worked, thanks!!!!;D
#9
I've put it in the function game_start an in the repeatedly_execute...



sorry about the long time to reply... :-\\
#10
Here's it:


if (PPColliding.CWithC(character[CARRO], character[EGO])) {
cEgo.ChangeView (4);
  }

and/or


if (cCarro.IsCollidingWithChar (cEGO) != 0) {
cEgo.ChangeView(4);
}

I tried to set the character baseline to another position, just to check, and it dont worked too...
Yes, i already tried AreThingsOverlapping, with the similars codes above and it dont worked.
#11
I'm working on my first game, that's like the firsts GTA games... My problem is: I want when the character CAR (who is a car :) ) collides with some other character (cEGO, for example), it's view is changed. I already tried the IsCollidinWithChar command and the PPC module, they don't worked.
Some help?



P.S - Sorry about my bad english :-\
SMF spam blocked by CleanTalk