#how to make tower defense

1 messages · Page 1 of 1 (latest)

raven heron
#

Does it need a complex coding or just a simple coding??

raven heron
#

First, create a map and path (size doesn't matter)

#

Create a prop (image need to be invisible and place it at (0, 0))

#

Create new component

#

Make spawn command (follow what I do)

raven heron
#

Now you can spawn enemies!

#

Create an enemy with movement component

#

Create new component called best distance (view in scripts) and health

#

Follow what I do

#

Next day I'll make tower

raven heron
#

Create a turret in prop section and make the team (teammate) and create new component

#

Here's the script at placeholder triggers (when initilizing object)

#

This in (when initializing object) again

raven heron
#

I forgot to post this. (In enemies comp)

#

Make spawn turret button in ui

#

This is the script

#

Place button

#

Script

raven heron
raven heron
#

Does it work?

raven heron
#

Share the link, I wanna play it