Remember me
You are here: HomeForumCyberix3D ForumGeneral DiscussionModel hitbox issue
Welcome, Guest
Username: Password: Remember me

TOPIC: adding new objects dynamically?

adding new objects dynamically? 4 years 1 month ago #2325

  • Plazma
  • Plazma's Avatar
  • OFFLINE
  • Senior Boarder
  • 99 bugs in the programming code.. 99 bugs in the code..
  • Posts: 77
  • Thank you received: 19
A concept for a project im working on is to have a model, such as a cube or sphere, generate at the player´s (X,Y,Z) position. the idea is to be able to create unlimited of these. Is it possible, and if it is, how?
Graphic designer and learning game developer.. I guess.
The administrator has disabled public write access.

adding new objects dynamically? 4 years 1 month ago #2326

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 703
  • Thank you received: 697
Yes,
This is possible.
You just need to have a Cube command inside an OnKeyPressed and set the Cube position to the camera position.
We found this example with view source on the site:
www.gamemaker3d.com/player?pid=052671031517
If you want to get inspired, you can also see this Sandbox game by Virax:
www.gamemaker3d.com/player?pid=0450244942

Regards,
Cyberix3D team
The administrator has disabled public write access.
The following user(s) said Thank You: Plazma
Time to create page: 0.070 seconds