View Full Version : Center player in the sk
Illusion Gaming
June 4th, 2006, 06:57 PM
ok well I was using the starter kit v1.5 and I saw that if you had a map size of 20 x 15 the character would be way off the map so I opened the scripts and did so math to center it and heres how to fix the error or what ever you call it.
Go to Game_Player*
find:
max_x = ($game_map.width - 20) * 128
max_y = ($game_map.height - 15) * 128
and replace it with:
max_x = ($game_map.width - 15) * 128
max_y = ($game_map.height - 10) * 128
I found that out because with the screen size of 480 by 320 it only shows 15 blocks across and 10 down and if the screen size was 640 by 480 there was 20 blocks across and 15 down. ok so hope this helps :D
~Azura
June 5th, 2006, 10:30 PM
Very nice!
I was planning on fixing that, but didn't know it would be that simple.
Thanks,
~Azura.
PokeCreator_09
June 5th, 2006, 10:38 PM
very nice. haven't encountered this and now i never will
Illusion Gaming
June 6th, 2006, 07:05 PM
no problem I like to help :D plus its helping me with my game :D
RMXPUser462
June 6th, 2006, 10:00 PM
yes, it did help me a lot, I would say I love ya, but... well... that would just be wrong
Fangking Omega
June 11th, 2006, 09:36 AM
I know a more recent edition of this starter kit had this fixed (I know I've got that fix anyway, seeing as I'd made it :P), but it's not available anymore. This'll be very useful for people without that edition.
~Azura
June 11th, 2006, 11:06 AM
We all love him for this *__*
LOL
Btw, Fangking, is Acanthite still being made?
~Azura.
The Dash
June 28th, 2006, 10:53 AM
Wow, Thanks a load! This was posing a massive problem to me because I was having to needlessy expand my maps.
~Azura
July 5th, 2006, 06:19 PM
Have you noticed your character (at least in big maps) is always at the bottom right? (Even though he's on the screen...)
Anyone has noticed that?
I tested my game in a 500x500 map and it is like that =\
Anyway, I fixed it ^^
Change the first lines in Game_Player:
CENTER_X = (320 - 16) * 4
CENTER_Y = (240 - 16) * 4
to
CENTER_X = (320 - 16) * 3
CENTER_Y = (240 - 16) * 2.5
Hope that helps too ^^
~Azura.
5tar
August 29th, 2006, 11:29 PM
I got the Pokemon Starter kit and when I played it,it said ??????
NoOb GaMeMaKeR
September 21st, 2007, 09:14 PM
You must have the wrong file