You can also set it with math using:
Every Tick -
Set Gun.X to player.X+cos(angle(player.x,player.x,mouse.x,mouse.y))*50
Set Gun.Y to player.Y+sin(angle(player.x,player.x,mouse.x,mouse.y))*50
Set Gun.Angle to angle(player.x,player.x,mouse.x,mouse.y)
Have a look at the notes I left you. 1drv.ms/u/s!AkmrWgxeuxlKhJlzqDAcfbger_Ju8w
Develop games in your browser. Powerful, performant & highly capable.
Something like:
On Enter Pressed
SUB If Textinput.text = var_playername - Show warning
SUB Else - Set var_playername to Textinput.text
Have a look at this example for basic pathfinding to avoid the player.
1drv.ms/u/s!AkmrWgxeuxlKhJkSc_-op8aY-pn92w
on click:
Spawn bullet
Bullet - set angle of motion to angle(gun.x,gun.y,mouse.x,mouse.y)
or if your gun is already always pointing towards the mouse just use the spawn bullet action and the angle of motion is inherited from the gun object.
I've never encountered a size limit
Use the pick nearest condition followed by a pick by evaluate condition that checks for the boolean status. Or other way round.
To continue with the raycasting example see updated link to project file:
1drv.ms/u/s!AkmrWgxeuxlKhJkPLpVsObFGDvhd6Q
It has moving components and you can update the centre of rotation by clicking anywhere.
the example game you linked is just tile movement. Have a look at the tile-based game example: editor.construct.net
Is there a way to choose the default layout size for new projects?
Current default is 2 x viewport resolution. I'd prefer to make my default layout size the same as the viewport.
See recent topic. construct.net/en/forum/construct-3/how-do-i-8/online-date-167722
Not multiplayer plugin.
Member since 28 Jan, 2018