DNGunpla

Members
  • Content Count

    17
  • Joined

  • Last visited

  1. I am working on a game that requires me to find the height of the triangle and draw the line for it from whichever base I click on. But so far, I have been encountering this issue. This is the code I am using to get the height of of triangle. It is based on using the coordinates of 2 points. Anyway to resolve this?
  2. I would like to ask is there any way to fix the black screen appearing whenever I replay the video in the Phaser Game. It doesn't have that when I play it on first time but after I replay it again, a temporary black screen appear before the video animation. Any idea how to fix it or go around it? If there is no solution to resolve it, its fine as well.
  3. DNGunpla

    Any idea how to stop object from flickering

    Anyone?
  4. Currently I am working on a project that requires moving the clock hands, where the hour hand moves 30 degrees while the minute hand moves by 6 degrees. Example: https://gyazo.com/72f11ae5f8fdefdbc96c502f7d7fbc48 However, I have this issue of the object flickering whenever I stopped at a point. Issue Example: Right now this is my code for moving the minute hand and the hour hand In the Update Function: Is there anyway to fix it?
  5. DNGunpla

    Drag and Scale Object

    @flow Okay I tried out the code and it is exactly what I want for dragging and scaling the object. So I want to add in vertical scaling and horizontal scaling from one side at any point only. Also I want to make it such that if the object is drag to like half the grid, it will automatically scale and snap to the nearest grid line. Anyway to do it? Example:
  6. DNGunpla

    Drag and Scale Object

    Okay I saw it and I will try it out thanks
  7. DNGunpla

    Is there a code for diagonal dragging?

    Oh Okay thanks I will try it out
  8. DNGunpla

    Drag and Scale Object

    Hi, I am looking for a way to drag and scale my object in my game. Right now this is my code: dot being the corner of the rectangle I want to drag and scale my rectangle. dot2 and dot3 being the area I want to drag and scale my rectangle to. Is there a way to do it?
  9. DNGunpla

    Moving the Clock Minute and Hour Hand

    Thanks I will try out
  10. DNGunpla

    Moving the Clock Minute and Hour Hand

    @samid737 Mind explaining about the code in the post above, please?
  11. DNGunpla

    Is there a code for diagonal dragging?

    @flow Any ideas how do I implement it?
  12. DNGunpla

    Moving the Clock Minute and Hour Hand

    I am not sure about this code, can you explain it for me? and also I tried using it works for when I turn clockwise. But when I try to turn it anti-clockwise, the minute hand gets stuck at the 180 degrees part Issue: https://gyazo.com/5c0ca2992f0a3bb998e87b07773bd9af Any ideas?
  13. DNGunpla

    Is there a code for diagonal dragging?

    I currently have the following object code to test the diagonal below so how should I code it from here?
  14. DNGunpla

    Moving the Clock Minute and Hour Hand

    Well I did try that out but the problem is that when I try to move from 180 to -180, it doesn't increase the angle but decrease the angle instead The code is as follow below Is there any way to fix it?
  15. I am creating a game that requires diagonal dragging of an object. Technically, how I want it to work is by scaling the object diagonally to make a rectangle or square. Is there any way to code for it?