If I'm not mistaking
if rightkey() = 1 and leftkey() = 0
ryu.spriteNum = 4
inc ryu.ninjax, ryu.speed
if ryu.ninjax + sprite width(4) > 600 then dec ryu.ninjax, ryu.speed
usual()
endif
if leftkey() = 1 and rightkey() = 0
ryu.spriteNum = 3
dec...
There's no reason to flame you, but I doubt that you'll find a tutorial on this.
DBC isn't the best program to create an rts-style game. (DBP on the other hand...).
Anyway, if you really want to create a 3D-rts game, search you won't find alot of tutorials. Some tips maybe:
Search for
-...
Hey, you have to understand me too.
You come to a DarkBasic forum and try to sell things. I thought this was a forum for people that have questions about DarkBasic, or want to share their knowledge.
Anyway, do as you like..
Mmm, maybe put 0.1 instead of 0.01.
set camera range 0.1,5000
Any other ways? I don't think so. Math and lock object on are the only commands that can help you through this problem I think.
Tip: use the "disable zdepth nr" command to make the gun always apear on top of other objects.
1: You might do it this way when you want to create an fps:
`get camera values
posx# = camera position x()
posy# = camera position y()
posz# = camera position z()
angy# = camera angle y()
offsetx# = 1.0
offsety# = 1.0
`work out gun position
gunx# = newxvalue(posx#,wrapvalue(angy# + 90)...
#include is a command in DB to include functions of another DBA file in you source code.
This means you can use any DBA file to include. And, This also means that you can create your own DBA files to include in another project.
To get functions, I would suggest you search in the forums of DB...
There's isn't a command where you can input while a loop is running. However, there are ways to solve this. This is the way I do it:
string$ = ""
oldstring$= ""
do
text 0,0,string$
`input
if oldkey$ <> inkey$()
if asc(inkey$()) <> 8
string$ = string$ + inkey$()...
You forgot to put a # after your t:
t# = 1.0
backdrop off : sync on : autocam on : sync rate 0
load object "C:\owing.3ds",1
cls
do
t# = wrapvalue(t#+1.0)
yrotate object 1,t#
loop
DarkBasic cannot change/reposition verteces. BUT, it CAN reposition/rotate limbs.
use these commands for this:
(to rotate)
rotate limb object_nr,object_limb,x,y,z
(to offset)
offset limb object_nr,object_limb,x,y,z
Free programs that work with DarkBasic:
anim8or - www.anim8or.com
JTEdit - www.jtgame.com/jtedit/
Blender - www.blender3d.org
DeleD - www.delgine.com
Wings 3D - www.wings3d.com
HamaPatch - http://www.geocities.com/Tokyo/Ginza/6625/soft10.html (not tested, but it can export .x)
LightRay3D -...
u can save it in a text/data file. use the 'open to write' command to write and the 'open to read' command to read.
i don't know if u can use it in DBPro though.
greetz
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.