In this tutorial, I will teach you X and Y, and how to link your levels for Graal.
X and Y Axis
First, let's start with the basics.
X is Horizonal, or Left to Right
Y is Vertical, or Top to Bottom
0 is usually in the middle.
To the Right of 0 X is positive,
Above 0 Y is also positive.
Of course this means to the Left X is negative
and below 0 Y is a negative.
Graals' 0 however starts in the Top Left.
Now a level contains 4096 tiles.
or a grid that is 64, 64.
X = 0 to X = 64
Y = 0 to Y = 64
However, on Graal it is slightly inverted, 0,0 is still at the top left,
however 64, 64 is at the bottom right.. everything is positive.
However, on Graal it is slightly inverted, 0,0 is still at the top left,
however 64, 64 is at the bottom right.. everything is positive.
This means all of your locations should be from 0 to 64.
Most people use 30, 30 as the middle, but in reality it is
32, 32.
Anyway, now that you know the X and Y axis,
let us learn about Graals' links.
First, remember these,
they will help you in link placement.
All you have to do is add these numbers to
get a good link for your level.
Left Link to Right Link:
X = X + 0.5
Y = Y - 1
Right Link to Left Link:
X = X - 2.5
Y = Y - 1
Top Link to Down Link
X = X - .5
Y = Y
Bottom Link to Top Link
X = X - . 5
Y = Y - 3
Now, in offline mode if you keep the link like X - . 5 it WILL work,
however for online mode you must actually subtract . 5 from X ...
However, playerx or playery + . 5 would work online.
"which is good, and I don't think many people know about this"
Basic Links
*/
First, open the online editor select two tiles.
I am choosing the left side.
This is going to be Right to Left
"Note: This link is two tiles in height"
"The way I am doing it is slightly confusing,
think of the right side door to the left of me."
At the top of the screen,
select the first blue arrow.
Now type in the level name
you are going to connect it to
and then we will click OK.
"we will be editing this later"
After that, we are going to do the next one.
But first, click the second blue arrow.
This allows us to edit the links we have put down.
However for now we are taking those first two numbers
which are the x and y of the last link we put.
Now enter those level name of the next level
and the two numbers of your last link
into the next link for the NewX and NewY.
"This is going to be Left to Right"
Now, we are going to edit the first link by double clicking it
inside the link editor as I showed you before.
Add in the variables I showed you at the top as well.
Now we are editing the second one,
keep in mind your links usually aren't in the same level.
Double click the second link.
First, add in the other links X and Y and then
add in the in the variables listed above.
Your end results should look something like this
unless you took the time to actually add or subtract.
If you did Great Job! If not, you will have to if you want
your level to work online... Sorry.
And there you go!
These are good for simple level to level links.
But let's get into the longer links and playerx / playery!
/*
Longer Links and playerx/playery
*/
So, you are getting smarter, and learning a lot.
I decided that this was a special occasion and created special doors.
As you can see they are longer then normal, 2 times larger.
"Note: This link is four tiles in length"
Again, we are going to select the area
and sense we don't know the other side yet,
we are going to keep it blank for now.
However, we WILL be using playerx.
This is because the length of the link, X axis or horizontal
is longer providing more walking space to enter the door.
I will explain what it does later.
Select the next door and
again keep the playerx in the NewX.
In the Link Editor, second blue arrow,
let's enter in the information of the two links.
Remember, the bottom door's Y is greater then the top door;
this is because the X and Y Grid is inverted.
Your ending results should look something like this,
unless you took the time to add and subtract.
It's fine to test the link offline with these in,
but they will not work online.
Not very efficient, so I started thinking...
"this is where I when I decided to test if addition and subtraction worked"
Well, as you see above it does.
In this picture I moved the bottom door over six tiles.
"two of the tiles do not have links"
For the top link, I will edit the X to be added by 6
and the bottom had to be re-setup, and subtracted by 6.
It works exactly the same, and this CAN be used online.
"I don't think many people know about this"
The main reason people use playerx and playery in their links is
basically to link their levels together.
In this picture I parted the tiles with my amazing powers,
and linked both halves. You will have to use your imagination once again
and pretend these links are two level ends.
Basically it allows you to walk across it from either X or Y and stay
in the same spot; of course if you were to test what I did in the level editor
you would not notice anything unusual.
/*
Signs
*/
Finally, it is still a link..
for the end we will quickly learn about signs!
On the top of the screen, click the sign button.
Then before you can start, you must click new.
Now, the default new should be highlighted,
but you would click the one you want to edit, and then
just type in the X and Y of the signs.
"All signs are 2x1 sadly"
Basically type in the X and Y of the first tile / half,
then when you are done click close.
TA-DA! You have a blank sign!
I suppose I should also mention it helps to
put a text into the bottom field when you are editing.
Red: Works Offline
Green: Works Offline and Online
"playerx and playery can have addition and subtraction signs online,
however the others will take the first number before the sign"
Red: Bad places to place links.
Green: Good places to place links.
Half: Probably not a great idea but it would work...
"I am use to placing it into the shadow area, but
I am told by Taylor Richard that it is smoother placing
the link on the door edge or in this case the top spot"
The End!!
I hope you learned something;
feel free to post your levels up on here
if you'd like them to be critiqued or just want to show
of your amazing levels!
"Images"
I'd like to create a Gani tutorial, but I mainly work VIA text files,
and I can't seem to see images on the Windows PC offline or on Graal Shop.
I do all my tests online, and this probably won't help a lot of people.
But let's get into the longer links and playerx / playery!
/*
Longer Links and playerx/playery
*/
So, you are getting smarter, and learning a lot.
I decided that this was a special occasion and created special doors.
As you can see they are longer then normal, 2 times larger.
"Note: This link is four tiles in length"
Again, we are going to select the area
and sense we don't know the other side yet,
we are going to keep it blank for now.
However, we WILL be using playerx.
This is because the length of the link, X axis or horizontal
is longer providing more walking space to enter the door.
I will explain what it does later.
Select the next door and
again keep the playerx in the NewX.
In the Link Editor, second blue arrow,
let's enter in the information of the two links.
Remember, the bottom door's Y is greater then the top door;
this is because the X and Y Grid is inverted.
Your ending results should look something like this,
unless you took the time to add and subtract.
It's fine to test the link offline with these in,
but they will not work online.
So, the reason we are using playerx and why we should use playery is
if you go inside a larger door, it keeps the correct X or Y you go into...
however this only works because I positioned the door on the X axis
exactly in the space as the other door on the X axis.
Not very efficient, so I started thinking...
"this is where I when I decided to test if addition and subtraction worked"
Well, as you see above it does.
In this picture I moved the bottom door over six tiles.
"two of the tiles do not have links"
For the top link, I will edit the X to be added by 6
and the bottom had to be re-setup, and subtracted by 6.
It works exactly the same, and this CAN be used online.
"I don't think many people know about this"
The main reason people use playerx and playery in their links is
basically to link their levels together.
In this picture I parted the tiles with my amazing powers,
and linked both halves. You will have to use your imagination once again
and pretend these links are two level ends.
Basically it allows you to walk across it from either X or Y and stay
in the same spot; of course if you were to test what I did in the level editor
you would not notice anything unusual.
/*
Signs
*/
Finally, it is still a link..
for the end we will quickly learn about signs!
On the top of the screen, click the sign button.
Then before you can start, you must click new.
Now, the default new should be highlighted,
but you would click the one you want to edit, and then
just type in the X and Y of the signs.
"All signs are 2x1 sadly"
Basically type in the X and Y of the first tile / half,
then when you are done click close.
TA-DA! You have a blank sign!
I suppose I should also mention it helps to
put a text into the bottom field when you are editing.
Red: Works Offline
Green: Works Offline and Online
"playerx and playery can have addition and subtraction signs online,
however the others will take the first number before the sign"
Red: Bad places to place links.
Green: Good places to place links.
Half: Probably not a great idea but it would work...
"I am use to placing it into the shadow area, but
I am told by Taylor Richard that it is smoother placing
the link on the door edge or in this case the top spot"
The End!!
I hope you learned something;
feel free to post your levels up on here
if you'd like them to be critiqued or just want to show
of your amazing levels!
"Images"
I'd like to create a Gani tutorial, but I mainly work VIA text files,
and I can't seem to see images on the Windows PC offline or on Graal Shop.
I do all my tests online, and this probably won't help a lot of people.
No comments:
Post a Comment