Remember me
Welcome, Guest
Username: Password: Remember me

TOPIC: What am i doing wrong here, trying to spawn object

What am i doing wrong here, trying to spawn object 8 years 8 months ago #141

What am i doing wrong here, trying to spawn on object according to mousex and mousey using set variable in a loop
Look at example

www.gamemaker3d.com/player?pid=0463844955

Cheers
The administrator has disabled public write access.

What am i doing wrong here, trying to spawn object 8 years 8 months ago #142

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 661
  • Thank you received: 628
The "If Mouse" command is supported only for objects and not for the screen.
This is a good idea to add support for this.
In the meanwhile you can use "If Key Pressed":
Capture_2015-07-22.jpg


And another thing, You don't really have a way to know the position in
3D space according to the mouse x,y. We will also add support for this...

Regards,
Cyberix3D team
The administrator has disabled public write access.
The following user(s) said Thank You: Andreas-Malmqvist

What am i doing wrong here, trying to spawn object 8 years 8 months ago #143

Well, i tried with the if key pressed to but i still don't see any spawn spheres....
Or is it due to the fact that there's no Z for mouse ?
My idea was to shoot a sphere to where the mouse pointer is..

Cheers
Last Edit: 8 years 8 months ago by Andreas-Malmqvist.
The administrator has disabled public write access.

What am i doing wrong here, trying to spawn object 8 years 8 months ago #144

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 661
  • Thank you received: 628
You don't see them because they are out of the camera view.
Try to copy the values from the attached picture in the last post and it should work.
Take in count it will not be accurate until we add support for getting 3D space position from the mouse 2D position.
Regards,
Cyberix3D team
The administrator has disabled public write access.
Time to create page: 0.094 seconds