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 / New Lease of Life -

Author
Message
BlackChaos
13
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 1st May 2017 10:49


This thread will be full of concepts.
The following code contains basic User Interface code, written in dbp's native commmans.


Version 1.0 as I work on it this will evolve.
Mage
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Canada
Posted: 2nd May 2017 03:34
You should consider using the Advanced 2D plugin from the get go. What you and others might not realize is that some of the commands you are using kill frame rate.
zero32
7
Years of Service
User Offline
Joined: 28th Jul 2016
Location:
Posted: 2nd May 2017 10:52 Edited at: 2nd May 2017 10:54
if it has to be native without the advanced 2d plugin you can also use a function like this to draw boxes:



the lock pixels command doesn't work with the box command, but it makes the dot command much faster.
i don't know how fast this is in comparison to the advanced 2D plugin.
BlackChaos
13
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 8th May 2017 21:52 Edited at: 8th May 2017 22:18
Dear Mage and Zero,


I would like to take this time to express my deepest gratitude toward your kind comments. So here, a more addon intensive version of the prev code. Mostly complete re-write to be fair; and please your comments are loved here nay hated


Ok sooo... Whats included:

Complete
Working on
Todo
In the works

--------------------
Text console
- Command parser - Write commands and have live effect in code (I swear to god if this already exists )
- Commands that work
-Make object cube 1,100 ( also sphere and plane) , Move object #,## and delete object #

Objects Editor
UI and Ui Editor (currently just a on off button that changes color
------------------------------More to come------------------
..................









Could have cleaned this up a bit but, its a dump of what im working on atm so.... I'll clean it up a little when I ain't working six days a week.
seppgirty
FPSC Developer
14
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 8th May 2017 23:20
Thanks Black chaos.We need more tutorials and examples on how to create U.I
gamer, lover, filmmaker
zero32
7
Years of Service
User Offline
Joined: 28th Jul 2016
Location:
Posted: 9th May 2017 06:15
BlackChaos wrote: "(I swear to god if this already exists )"

https://forum.thegamecreators.com/thread/219406
but your code is much much better. i don't really know how to write a parser, so that was my first attempt.

Login to post a reply

Server time is: 2024-04-19 23:12:48
Your offset time is: 2024-04-19 23:12:48