craidencool Posted June 13, 2016 Share Posted June 13, 2016 Im using the same code but as you can see no matter how I change the offsetY and X it stays in that position. thank you very much! Link to comment Share on other sites More sharing options...
MichaelD Posted June 13, 2016 Share Posted June 13, 2016 Are you sure there isn't anything else modifying the position of the X? I tried it again and it works on the codepen example: http://codepen.io/netgfx/pen/bNLgaX If you remove offsetX, offsetY does the X go in the center? (it should) Link to comment Share on other sites More sharing options...
craidencool Posted June 13, 2016 Author Share Posted June 13, 2016 I tried removing the offsetX and offestY it still did nothing. Link to comment Share on other sites More sharing options...
craidencool Posted June 13, 2016 Author Share Posted June 13, 2016 the position of the text and "X" is still the same on the top left part Link to comment Share on other sites More sharing options...
MichaelD Posted June 13, 2016 Share Posted June 13, 2016 Are there any errors on the console? It seems really strange that it wouldn't do anything. If you remove the X declaration, does the X disappear? Tilde 1 Link to comment Share on other sites More sharing options...
craidencool Posted June 13, 2016 Author Share Posted June 13, 2016 Here it is, and another problem of mine is Im using tiled map and the modal shows only on the starting point of the map. thank you very much for helping me. Tilde 1 Link to comment Share on other sites More sharing options...
MichaelD Posted June 13, 2016 Share Posted June 13, 2016 reg.modal = new gameModal(game); Are you using this on the create function of the state? or some state? Also there is a comma after the last } bracket, this should be removed. Link to comment Share on other sites More sharing options...
craidencool Posted June 13, 2016 Author Share Posted June 13, 2016 Sir, can I send you my files through your email? It would be very helpful if an expert would look at my souce code. Because this is my first time to develop a game learning app for my thesis. Thank you very much! Link to comment Share on other sites More sharing options...
MichaelD Posted June 13, 2016 Share Posted June 13, 2016 Sure thing. I will take a look. Link to comment Share on other sites More sharing options...
craidencool Posted June 13, 2016 Author Share Posted June 13, 2016 Sir, can you message me your email address? Thank you very much! Link to comment Share on other sites More sharing options...
Recommended Posts