![]() |
re-assigning x and y
is there a way, (i doubt it) ,
to make the startin x and y of a level at 32,32 ... where are 32,32 would be chnged to 0,0 like on a graph. I know they start in the top left hand corner at 0,0 but i was wonderin if there is a command to do it where its starting point is (32,32) but it appears as x and y. I am not talking about setting varibles for it ... i am asking if there is a solid command for it ... There is nothing i could really use it for but i jut wanna know ... |
Quote:
Yeah that really makes sense... |
Re: re-assigning x and y
Quote:
so are you wondering if there is a command so if the player enters the level it puts them at a certain x and y? |
yes just use
if (playerenters) { playerx = whatever; playery = whatever; } |
I believe what he is trying to say is that graal should be a 4 quadrant graph, not just 1.
He wants to know if there is a command that would make it into a 4 quadrant graph. And I don't believe there is. |
ok ...
read below \/ \/
|
thats it ...
Quote:
|
thanx
Quote:
|
He's not talking about moving the origin from (0,0). To be technical, he's talking about redefining (0,0), which by definition is the origin.
|
You konw that would sound intellegent if you didn just reinstate the same thing kai said with different wording and thinking waht you said was acually different.
|
(0,0), by definition, is always the origin, because the origin defines where (0,0) is. Imagine a player character called Zero 0 and an NPC called Origin. Origin has the following script:
NPC Code: It should, in effect, move player with name Zero 0 to the X and Y of the NPC Origin. |
Falcor, I am merely trying to state that the origin cannot be moved from 0,0 because the origin is ALWAYS 0,0.
|
hehe, that is the nice thing about Megazeux. You could program for specific things where the player's position was absolute zero or the Robot's (npc) position was absolute zero...but that was only for a few things such as checking what blocks (tiles) were near or in front of.
REL to Player - relative to player REL to Self - relative to Robot REL to Counters (I can't remember the definition for this one >.<) those were used more as prefixes that pre-empted the command below it. |
you could do x-32 and y-32 which will get a coordinate is between -32 and 32
|
Quote:
|
64-x & 64-y = the cooridinate if there were 4 equal quadrants
|
| All times are GMT +2. The time now is 11:43 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.