|
Post by NicusorN5 on Jul 16, 2015 19:19:54 GMT
I'm starting using 3D Rad v 7.22 and i try to make a minecraft-like game where you can bulid .I have small script experience , I need a script which creates a 200m x 20m x 200m (xyz) land made from a 1m^3 cubes .I need also a other script that breaks a selected block.
|
|
|
Post by F1Andre on Jul 16, 2015 20:40:39 GMT
You can make a 1x1m meter rigidbody block in sketchup and import it. Next you either code each blocks place in the manually or create algorithm that does it for you. I suggest using loops so that when the one block is created, it sets the x or y axis to increment by 1and then create another block. do this in layers so that when lets say the script have made 200 blocks in the x axis, it offsets the y axis with one. This way you can make rows and then start by making layers to stack on each other(the z axis).
To break a block you simply throw a rigidbody ball and once it hits the object or block, it destroys it.
This is what I would have done, I suggest you ask Power when he gets back from his camp. He has achieved auto generated maps using height maps.
|
|
|
Post by NicusorN5 on Jul 17, 2015 13:09:44 GMT
Thanks for the breaking system hint , BTW i think i can do the terrain by using a .x file xD .
|
|
|
Post by n_iron on Jul 18, 2015 4:51:00 GMT
|
|
|
Post by NicusorN5 on Jul 18, 2015 15:58:36 GMT
Nah...
|
|
|
Post by Power Supersport on Jul 19, 2015 12:00:49 GMT
Nicusor, I will be able to provide you a script, which does all the job instead of you... but you need advanced scripting knowledge in order to modify it...
The problem is that minecraft terrain generating is perfectly implemented, but I still have some problems with breaking blocks...
|
|
|
Post by NicusorN5 on Jul 19, 2015 12:45:50 GMT
Also i don't know how to make blocks placeable also for breaking you're using Projectile or Scanner or Script ?
|
|
|
Post by Power Supersport on Jul 19, 2015 13:14:36 GMT
Tried them all... And still laggy...
|
|
|
Post by F1Andre on Jul 19, 2015 13:18:06 GMT
I think you can achieve placing blocks like this: Create an id for each block that has no other block on top of it. If the user presses a key, a scanner will be casted and then whatever block(block id) the scanner hits, place a block on top of it.
|
|
|
Post by F1Andre on Jul 19, 2015 13:24:46 GMT
I think that you can google this and even if it is made in an other engine or programming language...you can still transfer the concept over to your own language or engine. It is easy to understand other languages, except C++(you need to read a book to understand some basics like pointers) and ruby, but you won't encounter ruby in the gaming industry except for the CAD programs.
I think the best approach for a game like minecraft is to code from scratch with the bare minimum using only a language and a IDE. There would be no engine that keeps the program running slower.
|
|
|
Post by Power Supersport on Jul 19, 2015 13:27:55 GMT
You're definetly right! I stuck on this game a little bit... It's kinda very hard to implement in game engine like Rad... But Geometry dash 3D can be handled pretty much by any computer (almost)... Because there are not so much imposters to place...
|
|
|
Post by F1Andre on Jul 19, 2015 13:34:26 GMT
True, it is a project that must not be taken light heartedly. It requires dedication and years of work to perfect the game. I'm sure that the official Minecraft didn't become a flawless program in a year.
|
|
|
Post by Power Supersport on Jul 19, 2015 14:46:45 GMT
Yes... Minecraft has been reviewed for more that 7 years as I know... (I may not know...)... And bugs still exist...
|
|
|
Post by NicusorN5 on Jul 19, 2015 14:58:49 GMT
BTW the terrain must be flat and 200 blocks long .I think it will be a not HUGE problem.
|
|
|
Post by Power Supersport on Jul 19, 2015 15:18:48 GMT
Don't think like that...
Multiply 200 x 200 = 40 000... that's pretty much!
And BTW, this doesn't matter... the script system is so hard, so maybe when I get better in scripting and imposter systems I would be able to share a decent system...
|
|
|
Post by NicusorN5 on Jul 19, 2015 15:36:17 GMT
I have a idea !!! The terrain will be made from just from 2 objects and the buliding\destroy will be controlled by a scanner or by a projectile
|
|
|
Post by NicusorN5 on Jul 19, 2015 15:36:55 GMT
It's better to block falling in void
|
|