leaving from right end of room but enters other room from right end (SOLVED)

Started by gypsysnail, Sun 15/10/2006 07:00:44

Previous topic - Next topic

gypsysnail

I have a strange problem where when I exit 1st room to the right and in the next room the character appears from the right when she should appear from the left side of the 2nd room. (the 1st room she has left from the right is room 1, and the next room she has entered - should be at left but is at right - is room 4). Any solution to this please?
Believe in afterlife! It's true in a metamorphical way ;)
Ken & Roberta - my inspiration!! 20 years.
U are what you love doing and passionate about - keep up what you love most.

SSH

Why is that strange? The character will stay in exactly the same on-screen position unless you tell it otherwise. So use the "Go to new room at specific position" ineraction or player.ChangeRoom(room, X, Y) to give X, Y co-ordinates. Or, set an "player enters room before fadein" interatcion in the new room which checks player.PreviousRoom and adjusts player.X and player.Y accordingly.
12

gypsysnail

Thank you SSH I am going to try this. Why was it strange to me? Because in the other rooms, that didnt happen and I didnt have to add those extra interactions that you have suggested, thats why. :) but going to try for this one.

EDIT:
I have tried go to new room at specific position - does not work, and where is player.changeroom? and if i was going to use player enters room before fade in, where is the player.previous room? U have to understand I am extremely new to this so pls be patient! Pls specify where player.ChangeRoom and the check player.PreviousRoom are, thank you.

Quote from: SSH on Sun 15/10/2006 08:13:02
Why is that strange? The character will stay in exactly the same on-screen position unless you tell it otherwise. So use the "Go to new room at specific position" ineraction or player.ChangeRoom(room, X, Y) to give X, Y co-ordinates. Or, set an "player enters room before fadein" interatcion in the new room which checks player.PreviousRoom and adjusts player.X and player.Y accordingly.
Believe in afterlife! It's true in a metamorphical way ;)
Ken & Roberta - my inspiration!! 20 years.
U are what you love doing and passionate about - keep up what you love most.

Ashen

ChangeRoom and PreviousRoom are scripting commands, so to use them you have to add a 'Run script' interaction.
In what way does 'Go to new room at specific coordinates' not work? What exactly have you got in your interaction, and what exactly happens?
I know what you're thinking ... Don't think that.

gypsysnail

Ok, I have room 1 there and I set the specific co ordinates for character to walk off screen to the right, and she does so accordingly to, but when she appears in the next room (room 4) she is standing at the right when she should be standing at the left. And to go back to room 1, I set the co ordinates to walk off the left screen and that works, but again back in room 1, she appears standing at the left screen.

What exactly have I put in:.... in room1 interaction was set under Walk off right screen edge, Player - 'Go to a different room at specific coordinates' (4, 328, 177) and in room4 interaction set under Walk off left screen edge, player - Go to a different room at specific coordinates' (1, 10, 227).

Before I added room 4, I was playing with room 2 and 3 and had no trouble with either (although sometimes the character would appear in an odd spot too high and couldnt move - because not in a walkable spot - I think this is because I chose go to new room without specific exact co ordinates and I understand this bit I hope!).

Anyway backing up to room 1 and 4 - maybe I have made the mistake of connecting room 1 and room 4 - should it be in a right order yeah? This game is only a test/practice game as I want to learn as much as I can before I make my actual game.

Quote from: Ashen on Sun 15/10/2006 13:50:58
ChangeRoom and PreviousRoom are scripting commands, so to use them you have to add a 'Run script' interaction.
In what way does 'Go to new room at specific coordinates' not work? What exactly have you got in your interaction, and what exactly happens?
Believe in afterlife! It's true in a metamorphical way ;)
Ken & Roberta - my inspiration!! 20 years.
U are what you love doing and passionate about - keep up what you love most.

Ashen

Quote
Player - 'Go to a different room at specific coordinates' (4, 328, 177)
player - Go to a different room at specific coordinates' (1, 10, 227)

Well, 328 is quite a high x coordinate which would explain why they appear in room 4 on the right. (I'm guessing room 4 is a scrolling room, otherwise it'd be off-screen.) Likewise 10 is quite low, which is why they appear in room 1 on the left. If you alter those coordinates, does it affect where they appear or is something majorly wrong?


The order rooms 'connect' to each other shouldn't matter - room 4 can connect to room 1, room 3, room 42, room 187 ... provided the commands (Interaction Editor or scripting0 and the coordinates are right, it's all good.
I know what you're thinking ... Don't think that.

gypsysnail

Ah ok I am still a bit confused.... I had pointed my mouse over the right edge of room 1 to get the co ordinates so the character will leave to the right to go into room 4.... and the co ordinates were those.... but I can't understand why it wont work the way it should? Unless the interaction means for the co ordinates of the next room and not the current room?
Believe in afterlife! It's true in a metamorphical way ;)
Ken & Roberta - my inspiration!! 20 years.
U are what you love doing and passionate about - keep up what you love most.

Coolio

Quote from: gypsysnail on Mon 16/10/2006 02:15:31
Unless the interaction means for the co ordinates of the next room and not the current room?

Exactly. The coordinates you set in the interaction specify where the character will appear in the room that he is going to.

Quote from: gypsysnail on Mon 16/10/2006 02:15:31
I had pointed my mouse over the right edge of room 1 to get the co ordinates so the character will leave to the right to go into room 4.... and the co ordinates were those

In the imortal words of Jamie Hyneman Adam Savage "well there's your problem". Use the coordinates from where you want the character to appear in the room that he is going to. So, with your above example, instead of using coordinates from the right of room 1, you should be using coordinates from the left of room 4.
mmmmm... sparkly

gypsysnail

Thanks heaps!! See, thats why I love this forum and its my all time fav forum :). Will go do that solution now in my game
Believe in afterlife! It's true in a metamorphical way ;)
Ken & Roberta - my inspiration!! 20 years.
U are what you love doing and passionate about - keep up what you love most.

Ashen

gypsysnail, the description for 'Player - Go to a different room (at specific coordinates)' clearly says "and places them at (coordinates)". If you'd looked at the manual entry for Character.ChangeRoom (the 'Text script equivalent code' for that interaction), it also explains it there. Please: read the manual, and any other available information, before posting here. It WILL save you time in the long run.

Coolio, that sounds more like Adam to me....
I know what you're thinking ... Don't think that.

gypsysnail

Ashen, I did read ALL the manual, but I am fully deaf and my way of reading language is different to yours cos I have missed out on hearing things in the world, so I rely on reading and sometimes its not that easy when it has been written by someone hearing who has learnt to write in different ways. I'm afraid I find the manual very hard to understand. So please be more understanding of me Ashen, and I ask for patience from you as I will be asking more questions in the 'beginners' forum cos I AM a beginner. I am on here to get support and help so I can do what I have always wanted to do - make games (yes my English is good but I can't understand some forms of writing ok?). Thank you.
Believe in afterlife! It's true in a metamorphical way ;)
Ken & Roberta - my inspiration!! 20 years.
U are what you love doing and passionate about - keep up what you love most.

SSH

If you have any specific comments on particular areas of the manual that need improvement, then please let us know so that a wiki article can be made or something to improve the situation.
12

gypsysnail

Yes I will do that, thanks SSH. I do have a few suggestions for improvement and I will message you them, I think at the weekend as I will have time to really think about them properly while I am at work. Thanks for giving us the opportunity to make suggestions for improvements. Meanwhile thanks to all for the help so far with my questions. I will get there, like all of you have :). I think now that this solution is solved, we can close thread for future reference if others have same problem? Cheers
Believe in afterlife! It's true in a metamorphical way ;)
Ken & Roberta - my inspiration!! 20 years.
U are what you love doing and passionate about - keep up what you love most.

SMF spam blocked by CleanTalk