1 decade ago by paulh
Hi
Another stupid thing ive forgotten, but how do i set other variables in the settings for a spawned entity?
So the above works, but ive tried loads of combinations trying to add the x and y velocity to the settings that i cant get to work :-(
Ideally id like to specify the x, y, vel.x, vel.y, friction.x, friction.y and anything else, but the syntax is avoiding me!
Also is it possible to have a UNIQUE gravity value for a spawned entity?
thx!
Another stupid thing ive forgotten, but how do i set other variables in the settings for a spawned entity?
var settings = {blockType:"X"}; ig.game.spawnEntity(EntitySpawner,200,360, settings);//spawn the game stats
So the above works, but ive tried loads of combinations trying to add the x and y velocity to the settings that i cant get to work :-(
Ideally id like to specify the x, y, vel.x, vel.y, friction.x, friction.y and anything else, but the syntax is avoiding me!
Also is it possible to have a UNIQUE gravity value for a spawned entity?
thx!