Efficiency but how?

remember the 1.3 updates for neon flight and how it will bring new types of ammo and bullets into the game?
well due to my lack of coding skills have let me believe that I have to make a whole new type of bullet (meaning a whole lot more data) off-screen to make this
is there a more efficient way?

You could just add another frame to the original bullet, and then add characteristics to the bullet there through code or size (depending on what u want this bullet to be).

Could you please expand a little bit what you are referring…? Add bullets without cloning them? or just to add a new bullet and reuse code?

slaps face
of course
But in the last topic I had a different problem with rotation do you now how to fix that to

Yah cloning but I was afraid that I would have to make a whole new original bullet and spend a lot of time connecting it with everything else

You could always study Object Oriented programming and do a class for ammo, and apply that class to all ammo… but regardless… you could define functions that accept clips (ammo) as parameters, and that function should work and do the same for all clips… example:

project.moveAmmo = function(ammo, amount)
{
    ammo.x += amount;
};

// Then at your ammo instance code, you could call that function by passing "this"

project.moveAmmo(this, 10);

// You could use the same function for all your ammo without having to define it again.
// Make sense?

1 Like

Is this the last topic:


(I was kinda busy with school stuff and forgot about it)

Could u just explain the rotating problem a bit more?

Thanks
: )

No problem school comes first for us student anyway!

The rotation problem happens when I put
This.rotation + or - = ( some numbers)

Then the ocapiciy ( can’t spell sorry) code will then not work because wick says it can’t be read

most recent edition neon flight 1.3.3 smal.wick (221.7 KB)
if you play it it will say the ocapity doesn’t work
this happened when i made to the character hearty (just look at its timeline its hard to explain)
the ocacity is still weird pls help

Oh, just looked through hearty’s timeline, I found the problem. You tried to refer to objects outside of the timeline without using the project.obj method to refer to them.
Here’s the new hearty: hearty .wick (221.8 KB)

Hope this solves the problem : )

oh thanks!

1 Like