You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.bullets=this.game.add.group()this.bullets.createMultiple(30,'bullet')this.bullets.setAll('checkWorldBounds',true)this.bullets.setAll('outOfBoundsKill',true)this.physics.arcade.enable(this.bullets)this.game.slopes.enable(this.bullets)this.bullets.forEach(function(bullet){bullet.body.height=15bullet.body.width=15bullet.height=2bullet.width=40// Define some shortcuts to some useful objectsvarbody=bullet.body// Update player body propertiesbody.drag.x=GameConsts.SLOPE_FEATURES.dragXbody.drag.y=GameConsts.SLOPE_FEATURES.dragYbody.bounce.x=GameConsts.SLOPE_FEATURES.bounceXbody.bounce.y=GameConsts.SLOPE_FEATURES.bounceY// Update player body Arcade Slopes propertiesbody.slopes.friction.x=GameConsts.SLOPE_FEATURES.frictionXbody.slopes.friction.y=GameConsts.SLOPE_FEATURES.frictionYbody.slopes.preferY=GameConsts.SLOPE_FEATURES.minimumOffsetYbody.slopes.pullUp=GameConsts.SLOPE_FEATURES.pullUpbody.slopes.pullDown=GameConsts.SLOPE_FEATURES.pullDownbody.slopes.pullLeft=GameConsts.SLOPE_FEATURES.pullLeftbody.slopes.pullRight=GameConsts.SLOPE_FEATURES.pullRightbody.slopes.snapUp=GameConsts.SLOPE_FEATURES.snapUpbody.slopes.snapDown=GameConsts.SLOPE_FEATURES.snapDownbody.slopes.snapLeft=GameConsts.SLOPE_FEATURES.snapLeftbody.slopes.snapRight=GameConsts.SLOPE_FEATURES.snapRight},this)
GameConsts just in case
// PhysicsMAX_VELOCITY_X: 500,MAX_VELOCITY_Y: 1000,// Max velocity before player starts going through the ground.BULLET_GRAVITY: 850,// Slope PluginSLOPE_FEATURES: {acceleration: 1500,bounceX: 0,bounceY: 0,debug: 0,dragX: 1000,dragY: 100,enableGravity: true,frictionX: 0,frictionY: 0,gravity: 1100,jump: 450,minimumOffsetY: 1,pullDown: 0,pullLeft: 0,pullRight: 0,pullUp: 0,snapDown: 0,snapLeft: 0,snapRight: 0,snapUp: 0},
The text was updated successfully, but these errors were encountered:
https://streamable.com/fak3
Happens on https://rangersteve.io when shooting. Maybe I should be specifying special slope properties just for bullets?
How I'm shooting the bullets
How I'm creating the bullets
GameConsts just in case
The text was updated successfully, but these errors were encountered: