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

#1
I don't know where else to put this, so I am assuming it goes here.

What is the maximum size of the background? And will it slow the game down if it is a huge background?
Now say I wanted to populate the background. Will large amounts of characters or objects slow it down?
does it zoom to the resolution you've set for the game?

Spoiler
I guess these are mostly stupid questions, but help is appreciated nonetheless
[close]
#2
Will this work?

Code: ags

function room_FirstLoad()
{
if(Random(1)== 0)
{
  Display("words");
}
else{
  Display("other words");
}
}
#3
@Dualnames the collision, and how you show it fired
#4
How did you do the weapons? I've been trying to figure out a way to have a gun in my game, but no ideas so far.
#5
I totally forgot regions existed. Thanks
#6
So far I'm just using if statements to have them able to pick up the thing. The bad part about that is that i'm a very basic programmer and can only trigger the events on a certain pixel.
#7
The character moves normal speed at all things, except for when told to go somewhere by code. When I tell him to Move he goes at ~3 times normal speed to the place. Is this normal or what?

Code: ags

cRedshirt.Move(282, 141);
oPamphlet.Visible = false;
player.AddInventory(iPamphlet);

This is my code for him picking up a pamphlet, and where I'm having trouble.
#8
I do not know how baselines work or how to use them to make something go over the PC.

Nevermind, I figured it out :tongue:
#9
Okay. I'm of be confuse now because I tried it with the default game and it worked. So I don't know what went wrong, so screw it. I did what Crimson Wizard said to do, watched most of the youtube things. I'm just going to base it on the default game, instead of creating it from scratch.
#10
the problem has not been solved yet
#11
Quote from: Mandle on Sat 28/03/2015 14:45:25
The reason nothing happens until you click again is because the Display message stays on the screen until you click...

So:

Error: prepare_script: error -18 (no such function in script) trying to run 'room_Leave' (room 1)

This is telling you that there is no such function as "room_Leave" in the script that controls room 1.

I don't know if you have such a function somewhere in Global Script or somewhere else but here AGS is telling you that it doesn't exist in the script for room 1.

Not to be rude here or anything but:

CLICK HERE FOR A STEP BY STEP TUTORIAL ON AGS

(It starts off really basic but gets in-depth on most of what you will ever need to know when making an AGS game if you watch through the series)

Seriously...I was also stumbling around in the dark until I found this tutorial series...

(Well, I'm still stumbling around in the dark but at least this series gave me a flashlight so I wouldn't get eaten by a gr...

Thanks, and as i said, Im a dumbass
#12
Quote from: Mandle on Sat 28/03/2015 13:26:43
Quote from: AprilSkies on Sat 28/03/2015 12:38:41
post edited. I asked something u already answered to...

So is it executing? do you see the message "CHANGING ROOM..." ?

What about this more important question ^^

Which is based on this earlier post:

Quote from: monkey_05_06 on Sat 28/03/2015 04:07:27
is the function executing? You can easily tell this by putting:

Code: ags
Display("CHANGING ROOMS....");


Just above the call to ChangeRoomAutoPosition.

(Not trying to be an ass...We are really trying to track down the issue here)

It does display it, but then doesn't do anything until I click again, which causes it to quit and display the message: An internal error has occurred. Please note down the following information. Error: prepare_script: error -18 (no such function in script) trying to run 'room_Leave' (room 1)
#13
Quote from: Mandle on Sat 28/03/2015 13:12:31
Quote from: highkingtorygg on Sat 28/03/2015 02:40:53
I am trying to get my protagonist to get to a new room, but I cannot get it to work. This is one of the many different ways I've tried to do it.
Code: ags

function hfencegate_Interact()
{
Donovan.ChangeRoomAutoPosition (2);
}


Anyways, I'm a novice to both AGS and coding, and a complete dumbass, so any help is appreciated.

I see that you changed the character's script name to cdonovan but did you also change this script to cdonovan?

As in:

Code: ags
cdonovan.ChangeRoomAutoPosition (2);


(Maybe also cDonovan would be a bit better for your own clarity in seperating character names from AGS code when you look at it later)

I did
#14
Quote from: monkey_05_06 on Sat 28/03/2015 04:07:27
When you say that you named the protagonist Donovan, is Donovan actually selected as the player character? That is, in Donovan's Character tab in the editor, is the "This is the player character" box checked?

If so, does the function "hfencegate_Interact" actually appear in the Events pane (click the Lightning bolt icon in the Properties pane) of hfencegate?

If so, is the function executing? You can easily tell this by putting:

Code: ags
Display("CHANGING ROOMS....");


Just above the call to ChangeRoomAutoPosition.

If that isn't being called, could you post the on_mouse_click function from your GlobalScript, as well as tell us any templates or modules you may be using?

There's a lot of things to consider as to why this might not be working. ;)

The protagonist's script name is now cdonovan, "hfencegate_interact" is in the events pane, the function is executing, but I still cannot get it to work. I have a second room, all set up and everything. The global script for on_mouse_click is
Code: ags

function on_mouse_click(MouseButton button) // called when a mouse button is clicked. button is either LEFT or RIGHT
{
  if (IsGamePaused() == 1) // Game is paused, so do nothing (ie. don't allow mouse click)
  {
  }
  else if (button == eMouseLeft) 
  {
    ProcessClick(mouse.x,mouse.y, mouse.Mode);
  }
  else // right-click, so cycle cursor
  {   
    mouse.SelectNextMode();
  }
}
#15
I named the protagonist Donovan, in case that was misleading.
#16
I am trying to get my protagonist to get to a new room, but I cannot get it to work. This is one of the many different ways I've tried to do it.
Code: ags

function hfencegate_Interact()
{
Donovan.ChangeRoomAutoPosition (2);
}


Anyways, I'm a novice to both AGS and coding, and a complete dumbass, so any help is appreciated.
SMF spam blocked by CleanTalk