MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > Programming > Programming section > Misc
Reload this Page [guide] how to make a spining cube under your control
Misc For other languages that don't fit elsewhere like KuRIoSaN or Lavishscript - PROGRAMMING WISE

Reply
 
LinkBack Thread Tools
[guide] how to make a spining cube under your control
(#1)
Old
malthi is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 3
malthi is an unknown quantity at this point
 
Posts: 35
Join Date: Sep 2007
Wow Guides [guide] how to make a spining cube under your control - 03-23-2008

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:

Quote:
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
Quote:
do
after the make object command and put the
Quote:
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

Quote:
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
Quote:
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

Quote:
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

Quote:
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]
[Only registered and activated users can see links. ] to remove ads.

Last edited by malthi; 04-17-2008 at 11:10 AM.
Reply With Quote

Donate to remove ads.
(#2)
Old
Tom_2001's Avatar
Tom_2001 is Offline
Contributor
Rep Power: 2
Reputation: 176
Tom_2001 has a spectacular aura aboutTom_2001 has a spectacular aura about
 
Posts: 608
Join Date: Oct 2007
Location: liverpool
03-23-2008

Nice copy "N" Paste mate


Reply With Quote
(#3)
Old
malthi is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 3
malthi is an unknown quantity at this point
 
Posts: 35
Join Date: Sep 2007
03-24-2008

copy? i dont copy anything
Reply With Quote
(#4)
Old
malthi is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 3
malthi is an unknown quantity at this point
 
Posts: 35
Join Date: Sep 2007
04-09-2008

51 views please comment
Reply With Quote
(#5)
Old
warsheep is Offline
Contributor
Rep Power: 3
Reputation: 183
warsheep has a spectacular aura aboutwarsheep has a spectacular aura about
 
Posts: 1,143
Join Date: Sep 2006
04-09-2008

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

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)


<ToXiCa> warsheep + denmark + VIP lounge + cheese = love <3
FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.
Reply With Quote
(#6)
Old
malthi is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 3
malthi is an unknown quantity at this point
 
Posts: 35
Join Date: Sep 2007
04-11-2008

sorry didnt know how to do it if i make a new guide i will add them
Reply With Quote
(#7)
Old
malthi is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 3
malthi is an unknown quantity at this point
 
Posts: 35
Join Date: Sep 2007
04-14-2008

95 views and 2 peopple comment please write something like fine or sucks
Reply With Quote
(#8)
Old
warsheep is Offline
Contributor
Rep Power: 3
Reputation: 183
warsheep has a spectacular aura aboutwarsheep has a spectacular aura about
 
Posts: 1,143
Join Date: Sep 2006
04-14-2008

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.


<ToXiCa> warsheep + denmark + VIP lounge + cheese = love <3
FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.
Reply With Quote
(#9)
Old
malthi is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 3
malthi is an unknown quantity at this point
 
Posts: 35
Join Date: Sep 2007
04-17-2008

ok..i will try
Reply With Quote
(#10)
Old
warsheep is Offline
Contributor
Rep Power: 3
Reputation: 183
warsheep has a spectacular aura aboutwarsheep has a spectacular aura about
 
Posts: 1,143
Join Date: Sep 2006
04-17-2008

Thanks for tagging it inside, its allot easier to read now...! I still look forward to seeing more guides, though..!


<ToXiCa> warsheep + denmark + VIP lounge + cheese = love <3
FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.
Reply With Quote
Reply

Donate to remove ads.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On




Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327