Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by svennnob

  1. svennnob

    2d animation issue with sprites

    I forgot to change it in the second part of the if statement too. if ryu.ninjax < 0 then dec ryu.ninjax
  2. svennnob

    2d animation issue with sprites

    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...
  3. svennnob

    How to create a point and click adventure game

    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 -...
  4. svennnob

    scifi music/theme pack

    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..
  5. svennnob

    scifi music/theme pack

    How many times are you going to spam another forum?
  6. svennnob

    Locking objects to screen

    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.
  7. svennnob

    Locking objects to screen

    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)...
  8. svennnob

    Libraries

    #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...
  9. svennnob

    MOVING SPRITE HELP!!!

    Try putting before EVERY command that has to do with sprites 'if sprite exist(sprnr) = 1' and after it 'endif'.
  10. svennnob

    text input problem

    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$()...
  11. svennnob

    problem with 3d in DBPro

    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
  12. svennnob

    Modeling in DB?

    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
  13. svennnob

    Modeling in DB?

    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 -...
  14. svennnob

    SAVE DATA TO FILE

    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

Part and Inventory Search

Back
Top