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 / Help with Sprite movement.

Author
Message
My games are free
16
Years of Service
User Offline
Joined: 28th Sep 2009
Location: Under your Bed
Posted: 30th Jan 2013 23:11
Hi everyone!
I have a problem as i made a Character spritesheet and the programn does not even show the pic, not the character nor the spritesheet. Other thing is the movement of the character, if someone could check on this code.
Sorry for the storm of code-spaghetti here




Thanks in advance!
T.JV
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 31st Jan 2013 01:19
set window off

I do not have DBP on here right now, but perhaps use set window on just before the main loop?

I believe using SYNC ON turns the application into a 3D project... again I cannot remember nor test right this moment...

Remove SYNC ON and keep the SYNC RATE, if you want to use sprites in 3D I suggest you take a look at Bill-Boarding techniques...

Hope that helps

pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 31st Jan 2013 04:18 Edited at: 31st Jan 2013 12:57
this sample-code ( animeted sprite )

https://forumfiles.thegamecreators.com/download/2430589
My games are free
16
Years of Service
User Offline
Joined: 28th Sep 2009
Location: Under your Bed
Posted: 31st Jan 2013 12:35
MrValentine: Well, it did not work, i deleted the sync on line and set the set window off before the main loop but now it shows a flashing image of blue and black screwing around my screen.

pcRaider: I did not get that one? Meaning?
My games are free
16
Years of Service
User Offline
Joined: 28th Sep 2009
Location: Under your Bed
Posted: 31st Jan 2013 12:48
Oh, sorry pcRaider, i did not notice that download sign
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 31st Jan 2013 12:48
Quote: "I do not have DBP on here right now, but perhaps use set window on just before the main loop?"


Did you miss-read what I wrote?

My games are free
16
Years of Service
User Offline
Joined: 28th Sep 2009
Location: Under your Bed
Posted: 31st Jan 2013 12:53
pcRaider: Actually your code works GREAT! thank you very much
My games are free
16
Years of Service
User Offline
Joined: 28th Sep 2009
Location: Under your Bed
Posted: 31st Jan 2013 12:55
MrValentine: I actually tried that in many ways, thinking that sentence over and over like "but perhaps use set window on, just before the main loop?"
"but perhaps use set window, on just before the main loop?"
so i tried window on and window off. sorry for my English. But thanks anyway
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 31st Jan 2013 12:59
haha, no worries, also try not to create unnecessary double posts, you can reply to each of us in a single post... just a heads up before a MOD feels like slapping you >.<

Glad you got this sorted out!

Time for me to install a Hyper-V system ^^

Login to post a reply

Server time is: 2026-07-07 04:30:27
Your offset time is: 2026-07-07 04:30:27