Thanks! Yep, that does help: now I'm not getting any error messages when I start the game.
The crosshairs sprite (called "aim," using the template "aimtemp" and on the path "aimpath") still isn't moving, though. I've made sure that it's set as an initial instance, that the control is set to "simple (scripted)", that its movement speed is at the maximum (although I'm not sure that matters), etc. The crosshairs sprite appears when the script isn't running, but it of course doesnt' move. When the game is run with the script, the crosshairs sprite still appears but it also doesn't move when I move the mouse. The code right now is:
#Split == Runtime script (Number 1) ============
'Modified by ragingmime
Sub CurrentDisplay_MouseMove(Button, Shift, X, Y)
With ProjectObj.GamePlayer.rMap
.Sprite("aim").X = X + .MapScrollX - .rMap.ViewLeft
.Sprite("aim").Y = Y + .MapScrollY - .rMap.ViewTop
End With
End Sub
HostObj.SinkObjectEvents CurrentDisplay, "Display"
HostObj.SinkObjectEvents ProjectObj.GamePlayer, "Player"
HostObj.ConnectEventsNow()
Can you see anything else that I'm doing wrong?
Thanks a lot!