Terraun Posted December 29, 2010 Author Share Posted December 29, 2010 Hey guys. I was wondering what code I would have to edit to make the change in size of my PicScreen work. My project uses large sprites and I feel it takes up too much room on the map. I want to say it's just a x,y= change, but I'm not sure. Any help here? Link to comment Share on other sites More sharing options...
Robin Posted December 29, 2010 Share Posted December 29, 2010 If you're using Eclipse Origins then all you need to do is change the MAX_MAPX and MAX_MAPY values to match the screen size. Link to comment Share on other sites More sharing options...
Terraun Posted December 29, 2010 Author Share Posted December 29, 2010 Perfect. Thanks Robin. Link to comment Share on other sites More sharing options...
Terraun Posted December 29, 2010 Author Share Posted December 29, 2010 Err.. I'm stuck. I found several MAX_MAPX/Y and the only one I found editable was the constants, but thats for the minimum map editor properties size. Link to comment Share on other sites More sharing options...
Robin Posted December 29, 2010 Share Posted December 29, 2010 @Terraun:> Err.. I'm stuck. I found several MAX_MAPX/Y and the only one I found editable was the constants, but thats for the minimum map editor properties size.Which is exactly what you need to change. The minimum map size needs to be the exact same as the picScreen's size. Link to comment Share on other sites More sharing options...
Terraun Posted December 29, 2010 Author Share Posted December 29, 2010 @Robin:> @Terraun:> > > Err.. I'm stuck. I found several MAX_MAPX/Y and the only one I found editable was the constants, but thats for the minimum map editor properties size.> > Which is exactly what you need to change. The minimum map size needs to be the exact same as the picScreen's size.The default values are 11,14\. When I change them to my map values I get an overflow compile error. Link to comment Share on other sites More sharing options...
Robin Posted December 29, 2010 Share Posted December 29, 2010 You'll need to delete your maps. Keep in mind that's the amount of _tiles_ you can fit on your picScreen, starting at 0. Link to comment Share on other sites More sharing options...
Terraun Posted December 29, 2010 Author Share Posted December 29, 2010 @Robin:> You'll need to delete your maps. Keep in mind that's the amount of _tiles_ you can fit on your picScreen, starting at 0.Oh, I think I get it now. Thanks. So I just divide my PicScreen values by 32 and replace the values? Link to comment Share on other sites More sharing options...
Terraun Posted December 29, 2010 Author Share Posted December 29, 2010 Err… It worked but my offset is so fucked. How would I fix this? The target on my sprite only appears as if I'm hovering the mouse over it, when my mouse is close to 4 tiles to the left of it. Link to comment Share on other sites More sharing options...
Robin Posted December 29, 2010 Share Posted December 29, 2010 Divide your picScreen by 32 and take 1 off. The count starts at 0 not 1. Link to comment Share on other sites More sharing options...
Terraun Posted December 29, 2010 Author Share Posted December 29, 2010 @Robin:> Divide your picScreen by 32 and take 1 off. The count starts at 0 not 1.It worked, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now