sistemlogikadigital

Members
  • Content Count

    22
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by sistemlogikadigital

  1. sistemlogikadigital

    Error occuring during collision event

    do you already instantiate game.Playscreen.pnjManager? probably game.Playscreen.pnjManager is null so you have to instantiate first
  2. sistemlogikadigital

    Error occuring during collision event

    it seems game.Playscreen.pnjManager doesnt have method with name removeChild(), what is parent's "other"? you should remove from the parent
  3. sistemlogikadigital

    melonJS 6.4.0

    something like this, sprite.setWidth(200) so i dont need to use sprite.scale() anymore
  4. sistemlogikadigital

    Error when try to run using phonegap android

    Here's the error : me.device.onReady(function onReady() { game.onload(); });
  5. sistemlogikadigital

    Error when try to run using phonegap android

    i finally solved it by move all the code to index.html
  6. sistemlogikadigital

    melonJS 6.4.0

    please add method like setWidth() and setHeight(), for me is easier than using method scale().
  7. sistemlogikadigital

    Error when try to run using phonegap android

    it does not provide console on phonegap andorid, so i need to user alert window to catch error. Yeah probably game.onload(); called first before game.js loaded, but i dont know why
  8. sistemlogikadigital

    Error when try to run using phonegap android

    actually this is happened only on phonegap, on browser run fine. So i thinks there's no wrong in game.js
  9. sistemlogikadigital

    Leaderboard not found

    i try to submit score to leaderboard but got an error like this: code: "LEADERBOARD_NOT_FOUND" message: "A leaderboard with the name "Leaderboard.0" was not found", after call FBInstant.initializeAsync( ) and FBInstant.startGameAsync(), i call this FBInstant.context .createAsync('100') .then(function() { //bla bla }); i dont undestand why context id became 0 instead 100, thanks!!
  10. sistemlogikadigital

    Leaderboard not found

    alrigth i got this, i just submit the score without context id and the score is saved to leaderboard.
  11. sistemlogikadigital

    Fix position after scale

    @obiot is there an update about this?
  12. currently im using method setRegion to change frame on GUI_Object, but i want change it like Entity using setCurrentAnimation. this.renderable = game.texture.createAnimationFromName(imgNames); this.renderable.addAnimation ("on", [0]); this.renderable.addAnimation ("off", [1]); this.renderable.setCurrentAnimation("on"); When i run this code on GUI_Object i got an error. So how to achieve this on GUI_Object ?? thanks
  13. sistemlogikadigital

    How to set animation on GUI_Object using texture atlas?

    here is my code, i only know this, dont know how to add animation this._super(me.GUI_Object, "init", [ posX,posY, { image : game.texture, framewidth : imgWidth, frameheight : imgHeight, region : imgNames[0], }]);
  14. sistemlogikadigital

    Fix position after scale

    i thinks this is still not fixed var scale = { mul : 1, } this.TweenScale = new me.Tween(scale).to({mul:1.01}, 500). onUpdate(()=>{ this.scale(scale.mul, scale.mul); }); this.TweenScale.easing(me.Tween.Easing.Quadratic.Out); this.TweenScale.start(); here is the result, see the big purple circle, when scaling its position changed
  15. sistemlogikadigital

    [Noob Question] Rotate toward mouse cursor

    How to rotate an object toward mouse cursor? so far i tried this code, but the object not rotate correctly update:function{ var mousePos = me.input.globalToLocal(me.input.pointer.clientX,me.input.pointer.clientY); var angle = this.angleToPoint(new me.Vector2d(mousePos.x, mousePos.y)); this.renderable.currentTransform.rotate(angle - this.PrevAngle); this.PrevAngle = angle; } Thanks
  16. sistemlogikadigital

    [Noob Question] Rotate toward mouse cursor

    yes i managed to fix it, i'm using math.atan2 to calculate angle, btw thanks for playing my game
  17. sistemlogikadigital

    Change image quality

    I tried to change image quality in image-rendering css, but whenever i change the value it seems always pixelated. Because my image is not pixel art, i want the value of image-rendering to optimizeQuality or auto. So can melonjs achieve that? here is my css : image-rendering: optimizeQuality; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: opti mize-contrast; -ms-interpolation-mode: bicubic;
  18. sistemlogikadigital

    Change image quality

    thanks, now the image quality improved
  19. sistemlogikadigital

    [Melonjs] Wall to Wall (Simple avoider game)

    Hello everyone, this is my first Melonjs game. You can Play it here: https://bit.ly/2EXKyAM This is game is simple avoider game, you just need to click anywhere to move and avoid anything red. Note : can only be played on browser desktop screenshot: Thanks for playing! Enjoy!
  20. sistemlogikadigital

    How to change animation when game paused

    I tried to change animation from GUI_Object when game paused, but the result : 1. object's animation not changed. 2. object's animation changed after the game resumed. so, How to change animation when game paused?
  21. sistemlogikadigital

    How to change animation when game paused

    Oh great!!, thanks it works
  22. sistemlogikadigital

    [Noob Question] Rotate toward mouse cursor

    Im using 6.1.0, I tried your code but still not rotate correctly