Help needed.
Posted: Fri Sep 14, 2018 7:50 pm
So uhm, i'm trying to make a bullet circle script but it mostly failed.
basically it would shoot by the count of 360/n amount, the amount consists of how many projectiles will be spawned, help will be appreciated!
Also here's what i have for now.
basically it would shoot by the count of 360/n amount, the amount consists of how many projectiles will be spawned, help will be appreciated!
Also here's what i have for now.
- Code: Select all
(e)=>{
spd = math.pi / 2 * 181;
eq = [math.sin(spd * sim.time), math.cos(spd * sim.time)];
Scene.addcircle({
pos := e.pos;
attraction := 0;
radius := 0.06;
heterocollide := true;
collideset := 2;
drawcake := false;
drawborder := false;
color := [1, 0, 1, 1];
density := 1;
vel := eq;
pos := e.this.pos + 0.5 * eq;
timeToLive := 5;
friction := 0.01;
restitution := 0
})
}