Author Topic: Projectile questions (VCE?)  (Read 410 times)

I want to make a brick that fires a projectile, for example 20 20 X

The X would be any number between 10-40

How would I do this?

onActivate>self>spawnprojectile> [Projectile Name] [20] [20] [30]

onActivate>self>spawnprojectile> [Projectile Name] [20] [20] [30]

Let me rephrase my opinion to make it clearer, it will randomly pick a number 10-40, not the same number every time, this will make the thing unpredictable to some extent.

isn't there a second output that lets you set the spread?

There are 6 boxes in the spawnprojectile event.

The first boxes are... well the first numbers you enter, if you only enter numbers to these it will always go to the same direction.

If you enter numbers to the first 3 boxes and the second 3 boxes it will pick a number between the entered numbers.

Ex.

[10] [20] [30] --- [20] [30] [40]

The bold (first) numbers from both boxes are for the x(or y?) axis so it's x axis speed will be picked from between 10 and 20 (including 10 and 20).
The second numbers ... and so on.

So this would be your spawnprojectile event.

[20] [20] [10] --- [(now i don't know what it does if you enter 0 here so if it doesn't work with 0 try 20] [(same here)] [40]

Hope it works.