Right I can tell this is going to make zero sense to anyone but I'll try.
I have two arrays one is 150x150 in size and the other is 20x20. The screen size is 150,150 so the larger array represents each pixel on screen.
I'm trying to put the data (is loaded from a saved array and is either 1 or 0 nothing complicated) from the smaller one (array2) into the larger (array1) where the left mouse button is clicked but it doesn't seem to work properly. It pastes the data but nowhere near where the mouse is clicked. I've probably mucked up maths wise but this is bugging me now. What I've tried:
On mouseclick I set 2 global variables to the mouse X&Y when clicked.
For Each element array2
current index is 1 set array1 currentindex + Xvariable & currentindey + Yvariable to 1
In my mind if the current index is 10,10 and the mouse is clicked at 50,50 it should set the data in the larger array to 1 at 60,60.
Don't really want to post a cap as it's very messy at the moment but can anyone see what is going to be my simple mistake.