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

#161
Hello.

I'm sorry, In the manual I typed it but it didn't show anything. I tried to search even system variables but I couldn't found anything, finally typing screen I found something similar, but I didn't know if it did exactly the same.
Maybe the problem is that I am not very familiar with this, yet.

Regards.
#162
Hello everyone.

I'm trying to create an animated cutscene.
I have these cutscene in 60 frames, each one a different picture.
I'm checking the manual and I don't know how to do it.
QuoteAnimating property (object)
(Formerly known as IsObjectAnimating, which is now obsolete)
readonly bool Object.Animating
Returns 1 if the specified object is currently animating.
Returns 0 if the object has finished its animation.
This property is read-only. To change object animation, use the Animate command.

Example:

object[2].Animate(5, 0);
while (object[2].Animating) Wait(1);
will animate object 2 and wait until the animation finishes.
In reality, you would simply use the Blocking parameter of Animate so you wouldn't need to do this.

See Also: Object.Animate, Object.Moving, Object.StopAnimating, Object.X, Object.Y
I don't know if I need to create an object or an array for that.
#163
Thank you very much.
#164
Beginners' Technical Questions / Starting room
Fri 20/03/2020 23:17:09
Hello.

I wonder if I am able to start my game with a cut scene, but I don't know my character to be in this cut scene, so my characters appears there as the introduction starts.
How can I make it to start without showing my character?

Regards.
#165
Thank you very much Morgan.

I will use these new variables.

Regards.
#166
Good evening everyone.

I am following the tutorials available https://www.youtube.com/watch?v=79yTq3BQo14&list=PL21DB402CB4DAEAEF&index=19
and in this video at 5:21 they refer to two System variables to get the project width and height.

  System.ViewportWidth;
  System.ViewportHeight;

which is are not accepted by my AGS, displaying the following error:

ViewportWidth is not a public member of System. Are you sure you spelt it correctly (remember, capital letters are important)?

I am checking the manuals and I can't find this system variable. Do you know if it exists, or if it is posible to get this information with another variable?

Thank you very much and regards.
#167
Thank you very much for all the replays!

I'm going to try it, if I don't say anything it will be because it works.

:)
#168
Quote from: Cassiebsg on Wed 18/03/2020 19:31:21
Depends, do you need to know how many times you visit the room, create an int variable, add +1 every time the player enters the room and then do an if condition to check where the counter is at.

If you just want something to happen the same every time except the first time, then just use the before and after fade in existing functions.

Thank you very much. This works!!
#169
Quote from: TheManInBoots on Thu 19/03/2020 02:33:41
In case it might be helpful I'd like to mention that there is also a room_FirstLoad() function that is only triggered once the very first time when the player enters the room
(if you check the room's events panel).

Yes, I know. My question was about a function which is not this one.
#170
Good evening all.

How can I create a function which activates if it is not the first time it loads, or if it is the third or forth time?

Regards.
#171
Hello.

I have my room1 with an invisible object(oFlower), and I want to make it visible once the character arrives to room4.
oFlower.Visible = true;
It is possible to change an object property from another room?
I have been reviewing the manual but I don't know if objects are part of a higher object room.
I don't know if I am explaining right.
How I can refer to variables from outside of one room? Is that possible?

Regards.
#172
Hello, I replace the background and now it works. I don't know how, but know it works.

Thank you all again.

Regards.
#173
Hello.

I've been some days with this problem. I created my second room and my character can't walk on it, but he can interact with a hotspot.
The walkable area is created and the character appears on this walkeble areaso I don't know what I have to do.
Here I paste the script to change the room:
From room1 to room 2:
function room_LeaveRight()
{
cChar1.ChangeRoom(2, 99, 455, eDirectionRight);
}

function room_LeaveLeft()
{
cChar1.ChangeRoom(2, 500, 455, eDirectionLeft);
}

From room 2 to room 1:
function room_LeaveLeft()
{
cChar1.ChangeRoom(1, 753, 509);
//cChar1.ChangeRoom(1, 753, 509, eDirectionDownLeft);
}
function room_LeaveRight()
{
cChar1.ChangeRoom(1, 504, 531, eDirectionLeft);
}

Do I need to activate anything else?

Regards.
#174
Ok! That was the problem. I created a character and I made him the player character, then everything now works!

Thank you for your patience.
#175
Hello.

Thank you all for your replays. I don't have any character created yet, I am following the tutorial, I am in the part 2 trying to create a room.
I have already created the walkable areas and the walk-behind areas. Anyway there is a default character 0 created, in which I set room number 1 as default, but it still crashes.
I have deleted the default/empty character to seee if it posible to solve this and it doesn't work.
I always get the same error.
Any other idea?

Regards.
#176
Good evening all.

This is my first post, I started with the tutorials and I don't know why I am having this error, because I followed the steps in the tutorials.
I created my empty project and created my first room, but when I run it shows the following error "The game is set to start in room -1 which does not exist",
but the room exists. At least the room 1, not the room -1 which the AGS says that is not possible to enter this room.
I tried to search how to change this but I can't find it.
Can anybody please tell me what am I doing wrong?

Regards.
SMF spam blocked by CleanTalk