diff --git a/!TheEsc/!MapEdit,ff8 b/!TheEsc/!MapEdit,ff8 index 76cdb27..de876ce 100644 Binary files a/!TheEsc/!MapEdit,ff8 and b/!TheEsc/!MapEdit,ff8 differ diff --git a/!TheEsc/Tiles,ff9 b/!TheEsc/Tiles,ff9 index 2ce8eb6..058027a 100644 Binary files a/!TheEsc/Tiles,ff9 and b/!TheEsc/Tiles,ff9 differ diff --git a/!TheEsc/c/MapEdit b/!TheEsc/c/MapEdit index 3527c67..31e67c3 100644 --- a/!TheEsc/c/MapEdit +++ b/!TheEsc/c/MapEdit @@ -129,44 +129,70 @@ void game2_tick_input() // Up arrow if(input_readkey(57)) { - TilePlayer.location.Y += 6 * (tick - lasttick); - if(TilePlayer.location.Y > (950)) + if(tick > readmodkey) { - TilePlayer.location.Y = 100; - TilePlayer.mapoffset.Y += 10; + TilePlayer.location.Y += 100; + if(TilePlayer.location.Y > (950)) + { + TilePlayer.location.Y = 50; + TilePlayer.mapoffset.Y += 10; + } + readmodkey = tick + 10; } } // Down arrow if(input_readkey(41)) { - TilePlayer.location.Y -= 6 * (tick - lasttick); - if(TilePlayer.location.Y < (10)) + if(tick > readmodkey) { - TilePlayer.location.Y = 900; - TilePlayer.mapoffset.Y -= 10; + TilePlayer.location.Y -= 100; + if(TilePlayer.location.Y < (10)) + { + if(TilePlayer.mapoffset.Y > 0) + { + TilePlayer.location.Y = 950; + TilePlayer.mapoffset.Y -= 10; + }else{ + TilePlayer.location.Y += 100; + } + } + readmodkey = tick + 10; } } // Right arrow if(input_readkey(121)) { - TilePlayer.location.X += 6 * (tick - lasttick); - if(TilePlayer.location.X > (950)) + if(tick > readmodkey) { - TilePlayer.location.X = 100; - TilePlayer.mapoffset.X += 10; + TilePlayer.location.X += 100; + if(TilePlayer.location.X > (950)) + { + TilePlayer.location.X = 50; + TilePlayer.mapoffset.X += 10; + } + readmodkey = tick + 10; } } // Left arrow if(input_readkey(25)) { - TilePlayer.location.X -= 6 * (tick - lasttick); - if(TilePlayer.location.X < (10)) + if(tick > readmodkey) { - TilePlayer.location.X = 900; - TilePlayer.mapoffset.X -= 10; + TilePlayer.location.X -= 100; + if(TilePlayer.location.X < (10)) + { + if(TilePlayer.mapoffset.X > 0) + { + TilePlayer.location.X = 950; + TilePlayer.mapoffset.X -= 10; + }else{ + TilePlayer.location.X += 100; + } + } + readmodkey = tick + 10; } } diff --git a/!TheEsc/mission2,ffd b/!TheEsc/mission2,ffd index cd04641..ba8ad67 100644 Binary files a/!TheEsc/mission2,ffd and b/!TheEsc/mission2,ffd differ