@GeekNerdProductions Sinse yours is a planet (sphere), it has a different amount of arguments in the script. Look closely. You forgot the say how many sides the sphere should have. 30 is always a good amount, by the way.
guys cmon every video this guy makes theres always someone who makes a typo in there error READ YOUR ERROR dont c/p it here hoping somone will help you. Nice videos man!
I have one more problem. everytime I try to make a "primitive thing" and put texture to it sometimes it doesn't work and the whole thing becomes black, and sometimes it works. Do you know how to make it work? here's the code I'm haveing problem with right now.
Use this script.. object_thing = d3d_model_create(); d3d_draw_floor(x+51,y+50,20,x,y+250,0,Grass_back,5 0,50); d3d_primitive_begin_texture(pr_trianglestrip,Grass _back); d3d_vertex_texture(x,y,0,1,1); d3d_vertex_texture(x+51,y+50,20,0,0); d3d_vertex_texture(x,y+50,0,0,0); d3d_primitive_end(); this goes in the object's draw event d3d_transform_set_identity(); d3d_transform_add_translation(x,y,0); d3d_model_draw(object_thing,0,0,0,textureID); d3d_transform_set_identity();
THANK YOU!
heyimthatperson 2 weeks ago
This has been flagged as spam show
muted :D anyone else?
r3mix3d26 10 months ago
Comment removed
rebellRR8 10 months ago
i like to create codes!!!!!!
ximitoulias 1 year ago
PLEASE answer this now I need to know before comp06 ends on the 29th.
ERROR line 4 position 81:wrong number of arguments to function or script
NOTE:mine is a planet, not a cube, I'm customizing it.
d3d_transform_set_identity();
d3d_transform_add_rotation_z(rot);
d3d_transform_add_translation(x,y,0);
d3d_draw_ellipsoid(-16,-16,32, 16,16,0,background_get_texture(tex_planet),1,1);
d3d_transform_set_identity();
GeekNerdProductions 1 year ago
@GeekNerdProductions Sinse yours is a planet (sphere), it has a different amount of arguments in the script. Look closely. You forgot the say how many sides the sphere should have. 30 is always a good amount, by the way.
BanthyStudios 1 year ago
@BanthyStudios thanks dude :)
GeekNerdProductions 1 year ago
agodesa left out a ',' in the code, It should look like this
d3d_draw_block(-16,-16,32, 16,16,0,background_get_texture (tex,cube),1,1);
Not this
d3d_draw_block(-16,-16,32, 16,16,0,background_get_texture (tex,cube)1,1);
youknowwho52 2 years ago
d3d_set_perspective,d3d_set_hidden,and d3d_set_lighting are all defaults... Just thought I would point that out.
youknowwho52 2 years ago
guys cmon every video this guy makes theres always someone who makes a typo in there error READ YOUR ERROR dont c/p it here hoping somone will help you. Nice videos man!
nugolaza 2 years ago
not work error look to this error:Trying to get texture from non-existing background. what i can do?
superman41591 2 years ago
what did you type in the code and what did you call the background?
BanthyStudios 2 years ago
Comment removed
Ipwnusoharddealwitit 2 years ago
heyy
COMPILATION ERROR in code action
Error in code at line 4: d3d_draw_block(-16,-16,32, 16,16,0,background_get_texture(tex,cube)1,1);
at position 69: Wrong number of arguments to function or script.
agodesa 2 years ago
u put tex,cube use tex_cube
BanthyStudios 2 years ago
what is the song name??
karl1998 3 years ago
hey there delila
MyaWho 2 years ago
sorry for bugging but i got this earror mesage when trying to load it
___________________________________________
ERROR in
action number 1
of Draw Event
for object ob_cam:
Error in code at line 1: d3d_set_projection(x,y,60, obj_cube.x,obj_cube.y,30, 0,0,1);
at position 29: Unknown variable obj_cube
johnyouis 3 years ago
have you made obj_cube?
BanthyStudios 3 years ago
5:22
johnyouis 3 years ago
oh! thats an = sign
BanthyStudios 3 years ago
ohhh my computer makes it look like some sort of bold line sorry about that
johnyouis 3 years ago
soory i relizzed by you replying back that i put ob_cube thank you it all works now thankyou
johnyouis 3 years ago
sorry but late in the video you use a bold line in your code it like a thike version of - i could not figur out how to make this thik line thank you
johnyouis 3 years ago
could you mention the time in the video? (e.g. 3:10)
BanthyStudios 3 years ago
Comment removed
johnyouis 3 years ago
how do you make that bold line latter in that video its ot -
johnyouis 3 years ago
could you restate that comment? I dont really understand. Sorry
BanthyStudios 3 years ago
k im trying to get a box in an fps im making
but, it appears a looooooong way off from where i put the object
???
Lotias 3 years ago
did you put x- or x+ or those things in the object size codes?
BanthyStudios 3 years ago
yes
Lotias 3 years ago
oops sorry stupid question ^.^
Lotias 3 years ago
how would i give it a texture?
Lotias 3 years ago
this owns but i have no idea how it works. i just copied you step by step exactly!
StonedTooth 3 years ago
What's the song? :)
CanOnlyContainNumber 3 years ago
"Hey there delilah" by "The Plain White Tee's"
BanthyStudios 3 years ago
How would I go about setting a diff. background per side?
Feuyaer 3 years ago
that is possible but it just takes a lot of code. Look up "game maker 3d tutorials" on Google
BanthyStudios 3 years ago
i tryed to make a shpere so i could make a rotating earth but if i use the ellipsoid it just goes all black are white???
Tablekorner 3 years ago
wat is the code you used for the shere?
BanthyStudios 3 years ago
my code on sphere is :
d3d_transform_set_identity();
d3d_transform_add_rotation_z(rot);
d3d_transform_add_translation(x,y,0);
d3d_draw_ellipsoid(-16,-16,32, 16,16,0,background_get_texture(tex_earth),1,1);
d3d_transform_set_identity();
Tablekorner 3 years ago
code the sphere part of the code, you need to use
d3d_draw_ellipsoid(-16,-16,32,16,16,0,background_get_texture(tex_earth),1,1,35);
all you needed to do is add the ,35 to the end to say how many faces the ball should have. :D
BanthyStudios 3 years ago
k i did that but i forgot that it is just all black still
Tablekorner 3 years ago
did you put
draw_set_color(c_white);
in the create event of the camera?
BanthyStudios 3 years ago
how do you do a cylinder?
jettigia 3 years ago
just replace the cube's draw event code with
d3d_draw_cylinder(-8,y-8,32,8,8,0,background_get_texture(tex_cube),1,2,true,30);
BanthyStudios 3 years ago
oops! take out the "y" part. just leave the -8
BanthyStudios 3 years ago
Nice
firemanx32 3 years ago
thank you
BanthyStudios 3 years ago
I managed to fix the texture problem... but now I can't add light to the "model", when I enable light it just turns black :( ...
elon92 3 years ago
OH WAIT!!! I think I have a good start on lighting your model. here use this. d3d_light_define_point("light1",x,y,10,100,c_white);
d3d_light_enable("light1",true);
and put the light object right next to the model object.
BanthyStudios 3 years ago
Do you have game maker 7? because d3d_model_create(); doesn't exist as a script in my version... and I have pro...
elon92 3 years ago
thats weird. yes im using 7. try looking it up in Help
BanthyStudios 3 years ago
I have one more problem. everytime I try to make a "primitive thing" and put texture to it sometimes it doesn't work and the whole thing becomes black, and sometimes it works. Do you know how to make it work? here's the code I'm haveing problem with right now.
d3d_draw_floor(x+51,y+50,20,x,y+250,0,Grass_back,50,50);
d3d_primitive_begin_texture(pr_trianglestrip,Grass_back);
d3d_vertex_texture(x,y,0,1,1);
d3d_vertex_texture(x+51,y+50,20,0,0);
d3d_vertex_texture(x,y+50,0,0,0);
d3d_primitive_end();
elon92 3 years ago
BanthyStudios 3 years ago
THANK YOU!!! GREAT!! I've been looking for a tutorial like this for ages!! :P Thanks! , Great!!
elon92 3 years ago
Glad you like it. More comin' soon!
BanthyStudios 3 years ago