Game Maker Pro 3D Tutorial: Spinning Cube

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,326
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 31, 2008

This is a tutorial on the 3D function in Game Maker Pro. A spinning cube

Link to this comment:

Share to:

Uploader Comments (BanthyStudios)

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

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

  • 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

see all

All Comments (39)

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

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

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

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