Wrong starting position for player

Status
Not open for further replies.

MinpinStudios

Villager
Member
Joined
Jun 4, 2014
Messages
8
Reaction score
0
First Language
Swedish
Primarily Uses
Hi everyone! This is my first post here, I just started working with VX Ace and I have run into a problem. I made a map that is 24x18squares big. On this map I put a 768x576px big parallax image. The problem is that the starting position of my character gets messed up. What have I done wrong? 

I don´t really know ho to make the character walk on the parallax map either, I understand the principals of it and I tried to find a good tutorial on youtube but they are all with captions and or faster than the speed of light so not very useful for a beginner.
 

RyokuHasu

Developer
Veteran
Joined
Jun 23, 2012
Messages
274
Reaction score
37
First Language
English
Primarily Uses
If it's a Parallax map you need to get a Parallax locking script because without it a Parallax scrolls at a different rate than the map itself because it's meant to be a backdrop far off into the distance.
 
Last edited by a moderator:

MinpinStudios

Villager
Member
Joined
Jun 4, 2014
Messages
8
Reaction score
0
First Language
Swedish
Primarily Uses
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Do you get an error message? Did you look to see if you need to set up any switches or variables? Did you set up the switches or variables?


The great thing about youtube is that you can pause videos at certain points so you don't have to be a speed reader ;)
 

MinpinStudios

Villager
Member
Joined
Jun 4, 2014
Messages
8
Reaction score
0
First Language
Swedish
Primarily Uses
Do you get an error message? Did you look to see if you need to set up any switches or variables? Did you set up the switches or variables?

The great thing about youtube is that you can pause videos at certain points so you don't have to be a speed reader ;)
No error message, I followed this tutorial: 



And it does not say anything about either switches or variables. Its not a very good tutorial but its the "best" one I found so far.. 
I copied and pasted the script needed under "Materials" where it says ( Insert here ) but how do you know if it works properly or not?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,367
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
And it does not say anything about either switches or variables.
Then this tutorial was not made for the script you're using, because script you're using REQUIRES the use of switches, of variables AND a very specific naming of the parallax pictures - did you name the parallax according to the script instructions and place it in the folder where the SCRIPT (not the video) requires you to put it?
There are four or five different parallax scripts out there, each giving different additional options (the one you're using for example allows for using additional light and shadow maps, for a total of up to four pictures to compose a map of).


Because those scripts were written by different people, each requires a different form of using it - which also means that any video tutorial you see can only give you the instructions on how to use one specific of those scripts.


Please follow the instructions in the script you're using, especially you should name and configure the switches and variables that Yami's overlay needs - or you won't get it working.
 

MinpinStudios

Villager
Member
Joined
Jun 4, 2014
Messages
8
Reaction score
0
First Language
Swedish
Primarily Uses
Then this tutorial was not made for the script you're using, because script you're using REQUIRES the use of switches, of variables AND a very specific naming of the parallax pictures - did you name the parallax according to the script instructions and place it in the folder where the SCRIPT (not the video) requires you to put it?

There are four or five different parallax scripts out there, each giving different additional options (the one you're using for example allows for using additional light and shadow maps, for a total of up to four pictures to compose a map of).

Because those scripts were written by different people, each requires a different form of using it - which also means that any video tutorial you see can only give you the instructions on how to use one specific of those scripts.

Please follow the instructions in the script you're using, especially you should name and configure the switches and variables that Yami's overlay needs - or you won't get it working.
The tutorial states that it is made for that exact script but in the video he/she does not show anything about using switches or variables. I dont understand the description in how to use the script, explaining how parallax mapping works seem to be extremely hard?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,367
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
Yanfly made defaults for the switches and variables, which means that if you make sure you didn't change those variables it should work by default - but that has to be done. If you haven't changed the script configuration, then Yanfly uses switches 1 to 4 and variables 1 and 2. If NOTHING in your project changes those switches and variables, then it will work without changing them - if you used them in your events already, that previous use might have switches off the script.


The second condition of the script is the naming of the parallax files. Please tell us how you named them, if you made a mistake there the script will not find the correct picture.
 

MinpinStudios

Villager
Member
Joined
Jun 4, 2014
Messages
8
Reaction score
0
First Language
Swedish
Primarily Uses
Yanfly made defaults for the switches and variables, which means that if you make sure you didn't change those variables it should work by default - but that has to be done. If you haven't changed the script configuration, then Yanfly uses switches 1 to 4 and variables 1 and 2. If NOTHING in your project changes those switches and variables, then it will work without changing them - if you used them in your events already, that previous use might have switches off the script.

The second condition of the script is the naming of the parallax files. Please tell us how you named them, if you made a mistake there the script will not find the correct picture.
The base map ith just the ground on it is named map1.png and is in the graphics/parallaxes folder. The overlay with the trees etc. is called par1-1.png and is in the graphics/overlays. I got the maps to overlay now and it works, I can walk behind trees and so on but the map is smaller in-game for some reason, 


EDIT: I got it to work by adding an event at the bottom-right corner, I have no idea why I needed to do that tho?
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,367
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
the map name is wrong - that's most probably why it didn't work, and that has nothing to do with the event.


Yami's overlay script REQUIRES that the ground picture for the first map is named ground1-1.png, only your parallax picture is named correctly.


Did you place the ground picture as a regular parallax in addition to the script? because that is not needed for the script, and it would explain why you can see a ground that is not used by the script itself...
 
Last edited by a moderator:

MinpinStudios

Villager
Member
Joined
Jun 4, 2014
Messages
8
Reaction score
0
First Language
Swedish
Primarily Uses
the map name is wrong - that's most probably why it didn't work, and that has nothing to do with the event.

Yami's overlay script REQUIRES that the ground picture for the first map is named ground1-1.png, only your parallax picture is named correctly.

Did you place the ground picture as a regular parallax in addition to the script? because that is not needed for the script, and it would explain why you can see a ground that is not used by the script itself...
Renamed the map and it works great! Thanks
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,584
Latest member
Faustus2501
Top