Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Character: Adam
#9
I've always had trouble with coordinates myself, so here's some tips that may help.
[Image: kz8XhTZ.png][Image: Z2Ed9zz.png]
Look at the above diagram. LouisEX has a 79x79 sprite. The ball is 35x49 with centerx: 17 centery: 25.
If your opoint is spawned at x: 0 y: 0, it would be exactly at the spot indicated in the pic, along the pink line which borders the green grid.

Everything is relative to the top left of a sprite - except in spawning objects with opoint, where the centerx/y of the object rather than its top left would lie exactly on the opoint coordinates. This can screw up your coordinates and you can't use the exact same x/y/w/h.

So using the above LouisEX example, if Louis' bdy is "x: 40 y: 40 w: 10 h: 20" and you want your ball to be positioned exactly in the middle of this bdy, you will need to use the opoint coordinates "x: 45 y: 50". If you want your ball's itr to cover this whole bdy, it should use "x: 12 y: 15 w: 10 h: 20".

I would suggest first doing everything assuming opoint is at x: 0 y: 0, then slowly work your way from there, drawing your own diagrams if necessary. Otherwise all that number processing can get very confusing as it did for me.
[Image: uMSShyX.png]
~Spy_The_Man1993~
Steiner v3.00 (outdated), Challenge Stage v1.51
Luigi's Easier Data-Editor, A-Man's Sprite Mirrorer
Working on the LF2 Rebalance mod.
Avatar styled by: prince_freeza
Reply
Thanks given by: prince_freeza


Messages In This Thread
Adam - by prince_freeza - 03-02-2015, 09:51 AM
RE: Adam - by the lf2 fan - 03-02-2015, 03:26 PM
RE: Adam - by STM1993 - 03-02-2015, 03:36 PM
RE: Adam - by YinYin - 03-02-2015, 07:11 PM
RE: Adam - by prince_freeza - 03-04-2015, 10:40 AM
RE: Adam - by YinYin - 03-04-2015, 11:34 AM
RE: Adam - by STM1993 - 03-04-2015, 02:33 PM
RE: Adam - by prince_freeza - 03-04-2015, 01:03 PM
RE: Adam - by YinYin - 03-04-2015, 02:32 PM
RE: Adam - by prince_freeza - 03-04-2015, 03:35 PM
RE: Adam - by YinYin - 03-04-2015, 03:41 PM
RE: Adam - by prince_freeza - 03-06-2015, 12:29 PM
RE: Adam - by YinYin - 03-06-2015, 05:09 PM
RE: Adam - by prince_freeza - 03-08-2015, 04:15 PM
RE: Adam - by plunderer - 03-04-2020, 07:59 PM
RE: Adam - by YinYin - 03-08-2015, 05:10 PM
RE: Adam - by STM1993 - 03-08-2015, 05:24 PM



Users browsing this thread: 3 Guest(s)