Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - shev

Pages: [1]
1
Graphics / manipulating non saved object
« on: June 16, 2016, 10:01:27 pm »
hi everyone,

I'm coding a game which has a matrix of tiles and text on each tile. I display them according to a non graphics vector-meaning I display the string in each object and so I don't actually have the board in my graphics class.
The problem is that I now want to implement a drag and drop function to swap texts between the tiles. I can know if  the user pressed on an area on which a text stands yet how can I then manipulate that text?
in other words- can I ask the mouse if he's on any object and then access the object?
or must I now save all the texts in the graphics as well?

Thank you so much!

Pages: [1]
anything