Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
鼠标左键长按时,主角向鼠标位置发射子弹,松开后停止发射
事件:条件-按住鼠标左键时;动作-从主角枪口生成子弹,设置子弹角度(运动方向)为angle(子弹.x,子弹.y,鼠标操作.x,鼠标操作.y),就行了,如果需要子弹发射有时间间隔,可以加个每隔x秒条件或者给主角加个定时器能力,当定时器不在运行中时才允许生成子弹,且生成一个子弹后就打开定时器,保证它生成一次就需要等一小段时间才能再生成一次,做出攻击时间间隔的效果。