--parameters this.actorname = "Bullet: Wave" this.enemy = enemy_weapon this.speed = 10 this.controllable = false this.physics = false this.angle = 0 this.noclip = true print(">>> Entity Created - "..this.actorname); function this.move(this) if(this:get_currentdirection() == right) then this:set_ownspeed(this.speed) end if (this:get_currentdirection() == left) then this:set_ownspeed(-this.speed) end this:set_y(this:get_y()+ (10 * math.sin(math.rad(this.angle))) ) this.angle = this.angle + 45 if ( this:get_x() < this:get_map_sx() or this:get_x() > this:get_map_sx() + this:get_cfg_screen_width()) then this:set_dying(true) end end function this.act(this) this:move() end --END