Yes FE4 is correct, will try it out, thanks
Quote from: Crimson Wizard on Tue 16/02/2021 01:26:21Quote from: cAlien_Interact on Tue 16/02/2021 01:18:51
The wall is an object, and it works to draw on it, not outside it, problem is the lines drawn is not continous, cant hold down...click click
To fix that you'd simply need to move the drawing code into room's "repeatedly execute" event.
But then you also need to test if the mouse is above this object:Code: ags if (Mouse.IsButtonDown(eMouseLeft) && Object.GetAtScreenXY(mouse.x, mouse.y) == FE4) { DrawingSurface* ds = Room.GetDrawingSurfaceForBackground(); ds.DrawingColor = Game.GetColorFromRGB(255,100,255); ds.DrawRectangle(mouse.x - 1, mouse.y - 1, mouse.x + 1, mouse.y + 1); ds.Release(); }
Here I assume that the object is called FE4, if not, just change the name in condition.