Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Having a 2d Slowdown Problem...

Author
Message
CDragon
14
Years of Service
User Offline
Joined: 16th Sep 2011
Location:
Posted: 24th Jan 2013 01:17
The attached project runs well, but slows down when I move the player into the bottom right portion of the map. This perplexes me and is a little discouraging to say the least... Anyway, one can move around with the directional buttons, hold shift to run, lock onto other sprites with z or x, and unlock with c. There is a lot more going on as well but I haven't finished reworking how I display all the sprites for player/other sprite attacks, etc (pasting, opposed to a show/hide as I have read it works faster). Also, this code has just been (mostly) updated to have the player remain in one spot and have everything display relative to him so there are several functions that haven't been updated quite yet. Anyway, I am curious if anyone has any ideas for why the slowdown occurs. Any help is much appreciated!!!

P.s. The MapSprites#(x,y) variable array will eventually be a CHARacter class which will eliminate a lot of unnecessary float variable processing. Also this is my first big programming project so any other pointers are more than welcome!!! Thanks for reading

RAWWWR

Login to post a reply

Server time is: 2026-07-07 12:27:37
Your offset time is: 2026-07-07 12:27:37