Added: 3 years ago
From: BanthyStudios
Views: 3,342
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (39)

Sign In or Sign Up now to post a comment!
  • THANK YOU!

  • Comment removed

  • i like to create codes!!!!!!

  • 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(r­ot);

    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 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 thanks dude :)

  • 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);

  • d3d_set_perspective,d3d_set_hi­dden,and d3d_set_lighting are all defaults... Just thought I would point that out.

  • 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!

  • not work error look to this error:Trying to get texture from non-existing background. what i can do?

  • what did you type in the code and what did you call the background?

  • Comment removed

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

  • u put tex,cube use tex_cube

  • what is the song name??

  • hey there delila

  • 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

  • have you made obj_cube?

  • 5:22

  • oh! thats an = sign

  • ohhh my computer makes it look like some sort of bold line sorry about that

  • soory i relizzed by you replying back that i put ob_cube thank you it all works now thankyou

  • 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

  • could you mention the time in the video? (e.g. 3:10)

  • Comment removed

  • how do you make that bold line latter in that video its ot  -

  • could you restate that comment? I dont really understand. Sorry

  • 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

    ???

  • did you put x- or x+ or those things in the object size codes?

  • yes

  • oops sorry stupid question ^.^

  • how would i give it a texture?

  • this owns but i have no idea how it works. i just copied you step by step exactly!

  • What's the song? :)

  • "Hey there delilah" by "The Plain White Tee's"

  • How would I go about setting a diff. background per side?

  • that is possible but it just takes a lot of code. Look up "game maker 3d tutorials" on Google

  • 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???

  • wat is the code you used for the shere?

  • my code on sphere is :

    d3d_transform_set_identity();

    d3d_transform_add_rotation_z(r­ot);

    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();

  • 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

  • k i did that but i forgot that it is just all black still

  • did you put

    draw_set_color(c_white);

    in the create event of the camera?

  • how do you do a cylinder?

  • 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);

  • oops! take out the "y" part. just leave the -8

  • Nice

  • thank you

  • 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 :( ...

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

  • Do you have game maker 7? because d3d_model_create(); doesn't exist as a script in my version... and I have pro...

  • thats weird. yes im using 7. try looking it up in Help

  • 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,2­0,0,0);

    d3d_vertex_texture(x,y+50,0,0,­0);

    d3d_primitive_end();

  • 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,2­0,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!!! GREAT!! I've been looking for a tutorial like this for ages!! :P Thanks! , Great!!

  • Glad you like it. More comin' soon!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more