Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Selecting a tile using the mouse
- - By h4y4shi Date 2012-02-18 16:54
I want to select a grass tile using a mouse. Right now I have it set to process.exit just to test it out. Could you help me find the problem please? It doesn't do anything at the moment.

Here is my github link for the project
https://github.com/LeviHarman/Level-Editor

The problem I think is in lines 43-49 in main.rb.
Parent - By lol_o2 Date 2012-02-19 11:50
The main problem with your editor is that the button_down(id) is outside LevelEditorWindow class. It should be inside.
And I hope you're going to change this method, because you call something to grass variable, which is undefined.
Up Topic Gosu / Gosu Exchange / Selecting a tile using the mouse

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill