Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Baby 3D Plugin for Construct 2

Make 3D games in Construct 2 powered by Babylon.js · By Pixel Rebirth

question

A topic by tellraw69 created 13 days ago Views: 44 Replies: 4
Viewing posts 1 to 2

thx for the plugin! i made a little game with this plugin and i have a 2 questions: why the game can render only 8 light points and how make an "laser" for interactions with stuff or something

Developer

Hi there! 

Always cool to see actual games being made using the plugin. I'll be sure to check it out!

Number of lights that can be used with Babylon.js actually depends a bit on your hardware, but usually is realistically around 9-10 lights at the same time. You can check this forum post for more info on that: https://forum.babylonjs.com/t/light-material-limit/17391/7

Are you already using raypicking in your project? Cause that seems to me what you're asking for when referring to "laser". Let me know if I'm misunderstanding, but picking by ray is already very much available.

thx for the respond!

not actually a "laser", i mean an raycast from the camera to get an sprite that player looking at, for interact with it (for example). im using raycast in another demo project for semi-physics that check collision between floor and player's hitbox and this works perfect!

Developer

The action "Forward ray from active camera" does exactly what you're looking for. 

The corresponding condition is "On hit".

(+1)

haha, thanks a lot!