Jump to content

  • Log In with Google      Sign In   
  • Create Account

ghigared

Member Since 19 Oct 2012
Offline Last Active Feb 02 2014 10:44 AM

Posts I've Made

In Topic: Having some trouble with rendering

20 February 2013 - 05:27 PM

Edit: fairly expensive, apparently.  Check out this link for some suggestions.  Biggest one is to turn your tiles into sprites packed into the same spritesheet and use the DrawEmbedded call instead of just Draw.

 

I'm trying to work with a .tmx file from the tiled software for the map though? I thought it was the most efficient way to do it, since the tiled software works with a spritesheet


In Topic: Having some trouble with rendering

20 February 2013 - 04:57 PM

Thanks guys, I'm still trying to fix this problem. Will continue to work on your suggestions.


In Topic: Having some trouble with rendering

19 February 2013 - 12:09 PM

2734 tiles being drawn

without being drawn fps is 60

with frames being drawn fps is 14


In Topic: I need help

25 January 2013 - 01:16 PM

I figured it all out guys, thank you all for your help :) I'll keep this post alive, and show you guys my progress just incase any one is interested :)


In Topic: I need help

25 January 2013 - 11:08 AM

(By the way, you can apply this downward force all the time--which is physically realistic anyway.

 

So when this force is applied all the time, when there is collision it doesn't change correct?

 

this :

player.setLocation(x, y=(float)(y +(9.8*gravity)));

 

seems to be working to pull an item forcefully down. I'm guessing that when there is collision the y location will be set to the position of the floor - the height of the player, and the gravity will be set to 0? Thank you very much for the help.


PARTNERS