I've got your updated loader, thanks David.
The mouse does different things in different places. At the moment, I'm simply dealing with the standard movement when it first loads.
The mouse starts at 320, 400, the very top of the menu. It quite happily moves left to right, but won't move up and down.
I had this thought in teh back of my mind that
mousemovex and
mousemovey lose their values once you've queried them. So I found the first reference to them in the main loop, and loaded them into 2 variables. Everywhere else, I reference the variables instead of the commands.
The result? Well, now I get slight, jerky movement in the y axis, and still get the smooth movement in the X axis. Y differs to X in that the cursor does different things depending on the Y position - it splits between menu and 3D mapping area.
I've obviously missed something somewhere. I'm happy to mail you the code if you want to help (or anyone else for that matter).
I've documented all the changes so far. I'm slowly moving things into functions, but I can only do that once I can prove the functionality still works at that point.
This could be a nice upgrade if we can do it between us. My ultimate goal is to include the new Terrain functions in Magic World, which was where I started.
BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply