How to fix this?

El Patron Del Mal
20 Oct 2016, 21:43

In the game I'm creating I have pictures; one when you enter the room for the first time, and another when you leave the room and come back. At first I had it set up as "this picture is displayed before you enter the room for the first time" and "this picture is displayed before you enter the room" and it WORKED. Now however both pictures are displayed when you enter the room for the first time and I have no idea what changed. How do I fix this?


Anonynn
21 Oct 2016, 01:45

It might be helpful if you paste the code of the scripts here so we can see what you're doing wrong.

From what it sounds like you're using a "First Time Script" or "When Player Enters the Room for the First Time" on the Room's "Scripts Tab" if not, you might be using the "Room Tab" and/or a combination of these, which is why the pictures are both coming up at the same time. Whatever the case, there are easy ways to fix this. I'll do my best to walk you through the easiest way.

  1. What I would do first is check the "Room Tab" --- change it to "Run Script", add a "First Time" script to it, place the picture you want in "the first time" area, and in the "otherwise" area place the other (the one the player returns and sees). Make sure you delete the script from the "Scripts Tab" if you have it there as well.

OPTIONAL

  1. What you can do next is in the Room's "Scripts Tab" place the description of the "first picture" in the "first time you enter space" (its near the bottom).

  2. Add a "First Time" script to the "After Leaving the Room" and possible have it describe what happens to the room behind you and the reason it changes. Don't do anything to the "otherwise" of that script.

Does all that make sense?

There are a lot of different ways of taking care of this problem too. This is just one way.


El Patron Del Mal
21 Oct 2016, 15:00

Thank you so much!!! The first option fixed it right away.


Anonynn
22 Oct 2016, 06:11

^___^