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

#161
You could try this:

Code: ags

if (cSquirrel.Room == player.Room) {
     if (cSquirrel.Moving == false) {
     cSquirrel.WalkStraight(Random(320), Random(200), eNoBlock);
}
}


and put it in repeatedly_execute
Hope it works well  ;)
#162
My opinion is (no offence) you're crazy.

@Pablo:
I don't know PIT from a bar of soap
(and if I did why would I want to advertise such a stupid game)
#163
My friends gaphics calculator has the Mirage Operating System and can play games.
eg. Super Mario
My friend knows I use AGS and told me to download a AGS Mirage Run-Time Engine.
I tried to tell him there isn't one, but he wouldn't listen.
I done a Google Search but couldn't find any game creators for the Mirage OS (not that I looked too hard).
Does anybody have, or know about one?

EDIT: Sorry for posting in the wrong thread.
#164
Thank-you that worked ;D
#165
Quote from: KhrisMUC on Sat 13/01/2007 04:09:47
if (keycode==87) { // W
   cBill.WalkStraight(cBill.x, cBill.y-200,eNoBlock);
   while ((IsKeyPressed(87)>0) && (cBill.Moving))    // check for W, not 372 i.e. Up arrow
    cBill.StopMoving();
}

Same for the other three.

This doesn't work either
#166
I've been experimenting with a 2-Player game with AGS.
I just can't figure out the second players controls.

this is my code

Code: ags

 if (cBill.Room == player.Room) {
if (keycode==87) { // W
   cBill.WalkStraight(cBill.x, cBill.y-200,eNoBlock);
   while ((IsKeyPressed(372)>0) && (cBill.Moving))
    cBill.StopMoving();
}

if (keycode==65) { // A
    cBill.WalkStraight(cBill.x-200, cBill.y,eNoBlock);
   while ((IsKeyPressed(372)>0) && (cBill.Moving))
    cBill.StopMoving();
}

if (keycode==68) { // D
    cBill.WalkStraight(cBill.x+200, cBill.y,eNoBlock);
    while ((IsKeyPressed(372)>0) && (cBill.Moving))
    cBill.StopMoving();
}

if (keycode==83) { // S
    cBill.WalkStraight(cBill.x, cBill.y+200,eNoBlock);
    while ((IsKeyPressed(372)>0) && (cBill.Moving))
      cBill.StopMoving();
}
}

But I can't make it when the player presses W,S,A or D a second time bill stops moving.
Can someone help me please?
#167
In the Interaction Editor use the Run Script command and type this:

Code: ags

cCharacter.Say("Hello");


Put your message where Hello is and the character's script name where Character is.
(You MUST use the Quotation marks)
#168
How do you make random attacks?

eg.
Code: ags

PlaySound(1);
Display("You attack NPC");
GiveScore(-2);
PlaySound(2);
Display(NPC throws fireball");
SetglobalInt(2,GetGlobalInt(2)-2);
//I have my comaprisons for health here


Now how can i make this:
Code: ags
PlaySound(2);
Display(NPC throws fireball");
SetglobalInt(2,GetGlobalInt(2)-2);


randomize with this

Code: ags

PlaySound(3);
Display(NPC throws Lava at you");
SetGlobalInt(2,GetGlobalInt(2)-2);


I hope I'm being clear  ???
#169
Quote
4. also, when i am traveling between rooms, the player character is not in the right spot.  is there a way to control where he is in the new room so it doesn't look like he teleported across the screen?

Didn't understand this question before.
Did you get the coordinates fron the room you're in, or the room you're going to?
That could be ure problem

Quote
2. Can I make it so the mouse is just a pointer for that screen?

Yes, you can
Code: ags

mouse.Mode = eModePointer;
#170
Quote from: vjamesv on Sat 23/12/2006 01:36:45

1. On the title screen, can I hide the main GUI title bar that is across the top?  Can I make it so the mouse is just a pointer for that screen?

In the interaction editor put in player enters room (before fadin):
Code: ags

gui[0].Visible = false;


Quote
3. Here is my scripting question.  on the title screen i have 'start game' and 'load game' as two options to click.  i figured out the start game, but i am not sure how to make it so when you click load game to get the restore game menu to pop up.  i looked up the restore command in the manual, and i am just not sure how to implement it.  if someone can help me step by step through this i think i will be able to figure a lot of other things out on my own.

Any click on obejct:
Code: ags

RestoreGameDialog();
#171
I think you're trying to make a character besides the player say something right, if so:

Code: ags
character[...].Say("INSERT TEXT HERE");


Put the character's script name where ... is
#173
Try this:
Code: ags

// script for Object 1 (Poster): Look at object
int pos1;
int pos2;


if (pos1 == 0) {
object[1].SetPosition(438, 111);
} 

  
 if (pos1 == 1 ) {
object[1].SetPosition(379, 118);
}

if (pos1 < 1) {
  pos1 += 1;
}

if (pos1 == 1)
  pos1 == 0;
}

#174
Download and Dance YAY!
Zelda Dance Remix 2 is here in joke games


http://www.adventuregamestudio.co.uk/games.php?category=4&action=download&game=812
;D

(NOTE: if you're using firefox, right-click, then copy link, then paste it in the address bar)
#175
Thanks!
I'll get the money  :D
#176
Quote from: modgeulator on Tue 07/11/2006 06:20:19
You can't buy drugs and hookers with presents.
o-kay.
I'm probebly taking the cash, because most of you say it would be better.
Some of you came up with some really wackey things, as being killed by vampires.  :D
#177
Quote from: [lgm] on Tue 07/11/2006 05:38:53
Beat her over the head and take both. Then, rob a liquor store and lead a grand chase across the continent (and several oceans) and on into Mexico, where you inevitably get killed by vampires in a strip-club.
I didn't mean THAT unserious.

She told me she will only give me up to $150 worth of presents or $150 Cash.
I'm leaning towards cash now, but still  ???
#178
My mother is letting me decide what I want for christmas.
She is offering me $150 Australian, or Presents.
What should I take? ???

EDIT- Sorry Helm, I didn't mean for the topic to be so serious.
Note to everyone else, this topic NOT to be taken too seriously
#179
In 2005 I started making animations in powerpoint.
Eventually I started calling myself 'The Creator' since I 'created' animations  ;)
(I didn't know spaces were allowed when registering, now I'm just 'Creator')
#180
General Discussion / Me, Hacker?
Fri 20/10/2006 04:55:55
I got a message from another AGS member who was getting messages from others about my old harmless signiture.
They were thinking I was a hacker.
Does anyone want to say anything about this?

Here's mine

SMF spam blocked by CleanTalk