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 / sync in main loop

Author
Message
mihaid
14
Years of Service
User Offline
Joined: 24th Feb 2012
Location:
Posted: 25th Mar 2012 09:22
Hello all,

I have a question:

I made an application, and I want to insert some physics to make a fire, smoket, etc... I inserted the physics code, creation of emitters. I put update physics and sync in main loop, and my text is flashing (cose of sync), and nothing happend.

Also maybe someone can tell me how to put in a position the emitter, maybe I make a confusion, ..I tried with "position object....", but ..I didnt seen nothing..

I wait your support please.

Mihai
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Mar 2012 14:45
Hi

Make sure you set up your screen correctly:



And for smoke and fire I think I have just the thing for you - TheComet's Library - A library of useful functions

TheComet

Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 25th Mar 2012 15:04
On a side note: Comet, how do you get color in code snippets?
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Mar 2012 15:36 Edited at: 25th Mar 2012 15:36
Like so:

[ code lang=dbp ][ /code ]

This forum has many hidden features

TheComet

mihaid
14
Years of Service
User Offline
Joined: 24th Feb 2012
Location:
Posted: 25th Mar 2012 19:39
How but the position of emitters??
If I put object position.....and scale, eventually, it's ok??

Mihai
mihaid
14
Years of Service
User Offline
Joined: 24th Feb 2012
Location:
Posted: 25th Mar 2012 19:49
I made the backdrop on, and the rest, still cant see nothing

Mihai
mihaid
14
Years of Service
User Offline
Joined: 24th Feb 2012
Location:
Posted: 25th Mar 2012 20:57
Finaly working !!!

Thank you very much !!!!!!!!!!!

Mihai

Login to post a reply

Server time is: 2026-07-09 15:47:18
Your offset time is: 2026-07-09 15:47:18