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.

Code Snippets / Runaway Cubes!

Author
Message
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 24th Mar 2007 16:31 Edited at: 2nd Apr 2007 00:07
Basically it shows a simple way to make stuff run away from an object. Use the arrow keys to move the sphere around and watch all of the little cubes run away! The cubes you hit will turn red. You can change how fast the cubes run with the cube_speed variable.

Enjoy

It should run in DBC and DBPro.




Version 2.0-- the cubes go back to their original positions!



Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 24th Mar 2007 23:21 Edited at: 25th Mar 2007 13:45
OOPS! I posted this in the wrong board. I meant to post it in the newcomers board because it was geared more towards newcomers... Could somebody move it there please? Unless you think it REALLY should go here...

EDIT: Oh well responses are still welcome here

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 25th Mar 2007 14:12
Cool! I like it! Nothing I didn't know but I'm sure some newcomers will find it useful.

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 25th Mar 2007 15:21
I'm glad you like it I changed the cube speed to 2 so now the cubes can run away faster.

aluseus GOD
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 28th Mar 2007 08:02
good. ut dont see how could be useful....
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 1st Apr 2007 02:39
It could be used for making sheep run away from you or something.

Zombie 20
17
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 1st Apr 2007 08:45
like in spyro.

Code Dragon
18
Years of Service
User Offline
Joined: 21st Aug 2006
Location: Everywhere
Posted: 1st Apr 2007 21:59
This would be awesome for a game, if anyone makes a game with it call it Sheep Catcher. I can see it now: "Catch 20 sheep within 60 seconds to win!". It looks great but try to make it so that if you sneak up on them from behind they don't see you.

By reading this sentence you have given me brief control of your mind.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 1st Apr 2007 22:17 Edited at: 1st Apr 2007 22:18
lol it wasn't a game but it could be... What would work better? A Top-Down view or a Third Person view? I'm not saying I'm going to make it

Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 1st Apr 2007 22:25
cubes are afraid for me graaaw!! funny code, you can also do this:

instead of:


you can do"


I am awesome and always right.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 1st Apr 2007 22:46 Edited at: 2nd Apr 2007 00:07
True, but then the cubes aren't facing the opposite direction as you. This would be more noticable on an object that you could tell was pointing in a certain direction.

EDIT: I made a new version where the cubes go back to their original positions See the first post for details...

Login to post a reply

Server time is: 2024-11-22 18:26:19
Your offset time is: 2024-11-22 18:26:19