http://gilgamesh.hamsterrepublic.com/cgi-bin/bugzilla/show_bug.cgi?id=417
Summary: Mouse funkiness
Product: OHRRPGCE
Version: 20070??? Ubersetzung
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P3
Component: Plotscripts
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Two things I noticed using the mouse commands in a plotscript:
1. In fullscreen mode, the mouse just doesn't work. It doesn't correctly detect
the mouse position and can cause some very strange behavior.
2. In windowed mode, the game crashed when I moved the cursor offscreen.
These might be two separate bugs but I'm not sure.
Here the script, pretty simple. It places the hero at the cursor position and
scrolls the screen if the cursor is near the edge (more quickly if very near).
script, do mouse, begin
init mouse
while (true) do (
put hero (0, mouse pixel x + camera pixel x, mouse pixel y + camera pixel y)
if (mouse pixel x << 30) then (put camera (camera pixel x -- 5, camera pixel
y))
if (mouse pixel x << 15) then (put camera (camera pixel x -- 5, camera pixel
y))
if (mouse pixel x >> 290) then (put camera (camera pixel x + 5, camera pixel
y))
if (mouse pixel x >> 305) then (put camera (camera pixel x + 5, camera pixel
y))
if (mouse pixel y << 30) then (put camera (camera pixel x, camera pixel y --
5))
if (mouse pixel y << 15) then (put camera (camera pixel x, camera pixel y --
5))
if (mouse pixel y >> 170) then (put camera (camera pixel x, camera pixel y +
5))
if (mouse pixel y >> 185) then (put camera (camera pixel x, camera pixel y +
5))
if (camera pixel x << 0) then (put camera (0, camera pixel y))
if (camera pixel x >> map width * 20 -- 320) then (put camera (map width * 20
-- 320, camera pixel y))
if (camera pixel y << 0) then (put camera (camera pixel x, 0))
if (camera pixel y >> map height * 20 -- 200) then (put camera (camera pixel
x, map width * 20 -- 200))
wait
)
end
--
Configure bugmail:
http://gilgamesh.hamsterrepublic.com/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org