[guide] how to make a spining cube under your control menu

User Tag List

Results 1 to 10 of 10
  1. #1
    malthi's Avatar Member
    Reputation
    3
    Join Date
    Sep 2007
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [guide] how to make a spining cube under your control

    i think i want to make my own small guide about darkbasic this will be about controling a object its now huge but inportant in almost all games

    okay first we want to make a object we can do so with this command:

    make object cube 1,100
    the first number is the nuber of the object the next number is the scale of the object.

    now we want it to check if some of the keys we use to control it is pressed. And we want it to do it forever so we put
    do
    after the make object command and put the
    loop
    command at the buttom it will make it do all betwen do and loop until we breaks the loop but in this program we dont wanna do so

    now we want it to rotate its yangle if we press left arrowkey we do so with this command

    if leftkey()=1 then yROTATE OBJECT 1, OBJECT ANGLE y(1)+1
    the "if leftkey()=1 then" part of the command make the program only do the following command if the leftkey is pressec because =1 means pressed 1 will always mean on and 0 will always mean unpressed and "if" mean if the following condition is on the program will do the following command

    the
    yROTATE OBJECT 1, OBJECT ANGLE y(1)+1
    part of the program will make the program rotate the objects yangle
    the "yrotate object 1", make it rotate the yangle a nuber of degress must be betwen 0 and 360 but we want it to change its yangle by 1 evry second not just set it to exampel 10 so indstet of have a command that look like this
    "yrotate object 1,10"
    we make another command
    "object angle y(1)+1"
    it takes the yangel of and object the number of the object is in () after the command in this case its 1. (but you should know that) and + it with 1 so we move 1 more degress than we already is on
    and i dont know where it will be good to post this but the number1 in the yrotate object 1
    is the number of the object we want to rotate

    now we want to do the same but with another key and another angel we want to change you should know what to do here we want to make one where we change the z angle when press right and x angle when press up

    you should know how to do that but if not read it bether

    now we want it to move when press space we do so with the following command

    if spacekey()=1 then move object 1,10
    the first part "if spacekey()=1 then" you should now what that do
    the "move object 1,10 "
    move the object the first number is the number of the object we want to move and the next number is the speed

    CONGRATULAISION YOU HAVE MADE AN CUBE UNDER YOUR CONTROL

    here is the complete program

    make object cube 1,100
    do
    if leftkey()=1 then yROTATE OBJECT 1, OBJECT ANGLE y(1)+1
    if rightkey()=1 then zROTATE OBJECT 1, OBJECT ANGLE z(1)+1
    if upkey()=1 then xrotate object 1, object angle x(1)+1
    if spacekey()=1 then move object 1,10
    loop
    PLEASE LEAVE A COMMENT ITS MY FIRST GUIDE

    OHH AND WARSHEEP I DIDNT KNOW HOW TO MAKE [/CODE] SO I MADE [/QUETE]
    Donate to remove ads.
    Last edited by malthi; 04-17-2008 at 10:10 AM.

    [guide] how to make a spining cube under your control
  2. #2
    Tom_2001's Avatar Member
    Reputation
    177
    Join Date
    Oct 2007
    Posts
    609
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice copy "N" Paste mate

  3. #3
    malthi's Avatar Member
    Reputation
    3
    Join Date
    Sep 2007
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    copy? i dont copy anything

  4. #4
    malthi's Avatar Member
    Reputation
    3
    Join Date
    Sep 2007
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    51 views please comment

  5. #5
    warsheep's Avatar Contributor
    Reputation
    184
    Join Date
    Sep 2006
    Posts
    1,216
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why didn't ya use the code tags? It gets allot easier to read then..!

    Anyways, good for a first guide.... and... since I feel nice today.. +Rep

    But I actually expect to see some code tags around the code parts!
    ( [code] [/ code] without the space between / and code. The code goes between the tags)
    FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.

  6. #6
    malthi's Avatar Member
    Reputation
    3
    Join Date
    Sep 2007
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry didnt know how to do it if i make a new guide i will add them

  7. #7
    malthi's Avatar Member
    Reputation
    3
    Join Date
    Sep 2007
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    95 views and 2 peopple comment please write something like fine or sucks

  8. #8
    warsheep's Avatar Contributor
    Reputation
    184
    Join Date
    Sep 2006
    Posts
    1,216
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The programming sections aren't that much used, this thread has actually gotten a high amount of comments, imo atleast.

    You should create some more guides, or work more on this one. Like, a button to break the loop and stuff, so people could learn how to use this in a more needed way, if you get me.
    FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.

  9. #9
    malthi's Avatar Member
    Reputation
    3
    Join Date
    Sep 2007
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok..i will try

  10. #10
    warsheep's Avatar Contributor
    Reputation
    184
    Join Date
    Sep 2006
    Posts
    1,216
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for tagging it inside, its allot easier to read now...! I still look forward to seeing more guides, though..!
    FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.

Similar Threads

  1. [Guide] How to make the best Host for your Server! [No-IP]
    By Mango Jerry in forum WoW EMU Guides & Tutorials
    Replies: 9
    Last Post: 06-01-2008, 09:26 AM
  2. [Guide] how to make LOTS of friends in your guild =D
    By Emilie Autumn in forum World of Warcraft General
    Replies: 7
    Last Post: 04-07-2008, 08:02 AM
  3. [Guide]How to make your Server 2.2.0 !
    By Guysus in forum WoW EMU Guides & Tutorials
    Replies: 17
    Last Post: 10-02-2007, 05:10 PM
  4. Guide how to make TWINK PRIEST
    By Croat in forum World of Warcraft Guides
    Replies: 8
    Last Post: 04-29-2007, 08:18 AM
  5. *Guide* How to make a movie
    By djmazi in forum World of Warcraft Guides
    Replies: 5
    Last Post: 12-22-2006, 09:15 PM
All times are GMT -5. The time now is 04:08 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search