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 - mport2004

#21
Completed Game Announcements / Re: AVP
Wed 04/05/2005 23:05:17
um how do i post a screen shot? i have one.
#22
i put the int vars at top o script and its still doing it.
#23
Completed Game Announcements / AVP
Wed 04/05/2005 02:48:48
my new game is Alien Vs Predator
its short you have to shoot bugs and aliens comming at you

you can get it at
http://www.freewebs.com/mport2004/downloads.htm
#24
im trying to make a 2player pong like game, but the code for the moving (for player one the arrow keys for player2 W is up S is down A is left  and D is right) when i move player one player 2 starts to move too.
heres my code


int cleft;  //flags to see if button is still pressed
int cright;
int cup;
int cdown;



                //the arrowkey code .
  if (IsKeyPressed(375)==1 && cleft==0) {
    cleft=1;
    MoveCharacterStraight(PA,-1000,character[PA].y);
  }
  if (IsKeyPressed(375)==0 && cleft==1){
    StopMoving(PA);
    cleft=0;
  }

  if (IsKeyPressed(377)==1 && cright==0) {
    cright=1;
    MoveCharacterStraight(PA,1000,character[PA].y);
  }
  if (IsKeyPressed(377)==0 && cright==1){
    StopMoving(PA);
    cright=0;
  }

  if (IsKeyPressed(372)==1 && cup==0) {
    cup=1;
    MoveCharacterStraight(PA,character[PA].x,-1000);
  }
  if (IsKeyPressed(372)==0 && cup==1){
    StopMoving(PA);
    cup=0;
  }

  if (IsKeyPressed(380)==1 && cdown==0) {
    cdown=1;
    MoveCharacterStraight(PA,character[PA].x,1000);
  }
  if (IsKeyPressed(380)==0 && cdown==1){
    StopMoving(PA);
    cdown=0;
}
//PB
int cleftb;
int crightb;
int cupb;
int cdownb;
           
  if (IsKeyPressed(65)==1 && cleftb==0) {
    cleftb=1;
    MoveCharacterStraight(PB,-1000,character[PB].y);
  }
  if (IsKeyPressed(65)==0 && cleftb==1){
    StopMoving(PB);
    cleftb=0;
  }

  if (IsKeyPressed(68)==1 && crightb==0) {
    crightb=1;
    MoveCharacterStraight(PB,1000,character[PB].y);
  }
  if (IsKeyPressed(68)==0 && crightb==1){
    StopMoving(PB);
    crightb=0;
  }

  if (IsKeyPressed(87)==1 && cupb==0) {
    cupb=1;
    MoveCharacterStraight(PB,character[PB].x,-1000);
  }
  if (IsKeyPressed(87)==0 && cupb==1){
    StopMoving(PB);
    cupb=0;
  }

  if (IsKeyPressed(83)==1 && cdownb==0) {
    cdownb=1;
    MoveCharacterStraight(PB,character[PB].x,1000);
  }
  if (IsKeyPressed(83)==0 && cdownb==1){
    StopMoving(PB);
    cdownb=0;
}
???
#25
Beginners' Technical Questions / 2 scores
Wed 04/05/2005 01:54:16
is it posable to show two diffrent scores at once
ex. player1 score and player2 score
#26
im making a game where im going to use the arrow keys for movment but i dont know how to do that.
I have the keycode # for the keys
#27
Beginners' Technical Questions / Re: Keycodes?
Tue 03/05/2005 23:15:12
ok
ill check that thx
#28
Beginners' Technical Questions / Keycodes?
Tue 03/05/2005 23:04:46
I was wondering what the keycodes were for the letters
W
A
S
D

and also the arrow keys

for ex. F9 is keycode  367
???
#29
yay it finally worked thx for the help ;D
#30
the code you gave me wont work i tryed it but it kept comming up w/ errors i changed it a bit

  if (GetGlobalInt(43) == 0) { // if quest is not solved
    if ((character[CPA].room == character[GetPlayerCharacter()].room) &&
       (character[CPB].room == character[GetPlayerCharacter()].room) &&
       (character[CPC].room == character[GetPlayerCharacter()].room))
       (character[CPD].room == character[GetPlayerCharacter()].room) &&
     { // if all people are in this room
      FollowCharacter(CPA, -1); // people don't follow you anymore
      FollowCharacter(CPB, -1);
      FollowCharacter(CPC, -1);
      FollowCharacter(CPD, -1);
      MoveCharacter(CPA,60,140);
      MoveCharacter(CPB,255,140);
      MoveCharacter(CPC,100,188);
      MoveCharacter(CPD,300,185);
      DisplaySpeech(CPA, "Guy wants to talk with you.");
      SetGlobalInt(43, 1); // set quest solved
    }
  }
#31
thx im not to good a some parts of scripting yet.
#32
i have a game thats almost finished but i came acrossed a problem in the game you have to guide some people to a village but i want them to stop when they get to the village.
#33
looks like a good game.

im making one similar to it but my graphx are crummy and i dont know how to get more than one unit slected at one time. or to do the scrolling.
#34
General Discussion / Re: an rts
Thu 17/03/2005 01:10:18
cool it looks good

:( all i have to use for graphx are files i make using paint.
#35
General Discussion / an rts
Tue 15/03/2005 23:53:40
has any one ever made a rts (real time stratigy) game in ags?
#36
i fixed it i dont know what i did but i fixed it??
#37
rep.ex?


and no i never even clicked on that part of the script and the error message said that it was on line
108:function show_inventory_window () {
and i have a end brace.
#38
in my game im dident even click on the code for
function show_inventory_window
and it was working fine but now when i try to save this comes up.

nested functions not supported

and this is the script


function show_inventory_window () {
  // This demonstrates both types of inventory window - the first part is how to
  // show the built-in inventory window, the second part uses the custom one.
  // Un-comment one section or the other below.
 
  // ** DEFAULT INVENTORY WINDOW
InventoryScreen();
/* 
  // ** CUSTOM INVENTORY WINDOW
  GUIOn (INVENTORY); 
  // switch to the Use cursor (to select items with)
  SetCursorMode (MODE_USE);
  // But, override the appearance to look like the arrow
  SetMouseCursor (6);
*/
}


  >:( ??? >:( ???
#39
Advanced Technical Forum / Re: code wont work
Thu 10/03/2005 17:36:24
 yay it worked but I'm starting to have doubts about the compatability of ccs w/ ags
#40
Advanced Technical Forum / Re: code wont work
Thu 10/03/2005 17:16:00
i tryed that once but every time i move a ccs command some of the others dont work.

also i notised i have 2 SET:Global(11)=1; commands in there


>:( >:( >:(
i got rid of the SET:Global(11)=0; command and i worked but i need that command!?!?!?
SMF spam blocked by CleanTalk