Remember me
You are here: HomeForumCyberix3D ForumJob OfferingsAdvances of my game
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 9 years 4 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 9 years 4 months ago #142

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 703
  • Thank you received: 697
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 9 years 4 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: 9 years 4 months ago by Andreas-Malmqvist.
The administrator has disabled public write access.

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

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 703
  • Thank you received: 697
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.083 seconds