Try it out if you'd like:
https://dl.dropboxusercontent.com/s/7z9 ... tion37.zip
Any insights as to why this is happening? I suspect it may be something to do with "hero is walking" and/or wait ticks. Or, I honestly don't know.
Here's the HSS:
Code: Select all
plotscript, newgame script, begin
variable (startx, starty)
startx := hero x(me) -- 7
starty := hero y(me) -- 5
put camera (startx * 20, starty * 20)
load slice collection (0)
while (true) do (
screen edge check
wait (1)
)
end
script, screen edge check, begin
if (hero is walking == false) then (
if (read zone(1, hero x(me), hero y(me)) && key is pressed(key:up)) then (scroll(up))
if (read zone(2, hero x(me), hero y(me)) && key is pressed(key:right)) then (scroll(right))
if (read zone(3, hero x(me), hero y(me)) && key is pressed(key:down)) then (scroll(down))
if (read zone(4, hero x(me), hero y(me)) && key is pressed(key:left)) then (scroll(left))
)
end
script, scroll, dir, begin
suspend player
switch (dir) do (
case (left, right) pan camera (dir, 16, 8)
case (up, down) pan camera (dir, 8, 5)
)
set hero speed (me, 1)
walk hero (me, dir, 1)
wait for camera
set hero speed (me, 4)
resume player
end