• Content Count

  • Joined

  • Last visited

About AnDG

  • Rank
  • Birthday October 14

Profile Information

  • Gender
  • Location
  • Interests
    Card game, slot game...

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks for your very detailed and complete instructions. I can still use the in-game iframe element as a standalone element that has nothing to do with the game, it's just like showing a pre-programmed game and just showing up for The user sees how it is happening. I could not interfere with the game loading from the iframe element, that was simply displaying it. I really want to optimize by including the word iframe into my canvas. In your own words, I understand that means we will have to draw another canvas and add it to the ticker to constantly update it. Is that really necessary? Because the game in the iframe element was drawn by another canvas element? I think it will take a lot of resources to display that way.
  2. Thanks @ivan.popelyshev, I will try to follow your instructions, if it really can't be loaded I will create a demo so you can review it.
  3. I actually have a game displayed in the canvas element and an iframe with another game, which is really hard to manage. That's why I want to use from () to include it in the canvas element of the current game.
  4. Thanks for your prompt and helpful response Ivan, I've been following you for a long time and still look forward to your assistance. I actually used a canvas element to create my game but due to the fact that I had to download another game on the section from iframe to display on my game, it interacted back and forth. between the 2 canvas elements of the game and the iframe closely. But the iframe is just a DOM element so I don't want to use it. I just want to put this iframe element in the same canvas as my current game so I can manage it best. I used from () to display a video element and it was successful but it was really difficult to load it as an iframe.
  5. Hi there, I am developing my project and currently I am using part from iframe to load another game to show it in my game. My question is does the Sprite element support loading games from an iframe element? Because I tried to download that game from PIXI.Spirte.from () but currently it does not download. Maybe I don't know how to use it properly. So can I use PIXI.Sprite.from to load an iframe element? Looking forward to receiving your help. I can still use the word iframe individually but I want to manage it more closely in display in the game. Because the used iframe is loaded on another canvas, it will not be able to edit that it will display in order, currently it is always on top of the game.
  6. Very nice site. I love it! Thanks for you sharing!
  7. Use this one!
  8. This is very simple in PIXI, if you want to consider the z-index of the elements you can use the setChildIndex of their container. Simply, elements added with the same container will be added to the previous element. However, you can use addChildAt or setChildrenIndex to do so.
  9. Write a function to facilitate this. I have written a function in my library similarly. The parameter includes (p_x, p_y, p_startAngle, p_endAngle, p_innerRadius, p_outerRadius). First you need to determine the starting point X and the starting Y coordinates: initialX = px + Math.cos (toRad (p_startAngle)) * p_outerRadius; Same for initialY with sin. moveTo (initialX, initialY); drawArc (p_x, p_y, p_outerRadius, p_startAngle, p_endAngle); lineTo (p_x + Math.cos (toRad (p_endAngle)) * p_innerRadius, p_y + Math.sin (toRad (p_endAngle)) * p_innerRadius); drawArc (p_x, p_y, p_innerRadius, p_endAngle, p_startAngle); lineTo (initialX, initialY); Note: customize the color you want by infusing the original color.
  10. Sadly, CocoonJS stopped working.
  11. Why do you want to do that? Instead of using a transparent element in pixi and using css to convert its color, create that transparent element with the color you want to use it. That would be better. I usually do so to synchronize source code.
  12. That is simple, the best way to do that is to draw a rectangle and another one as soon as it's created. That will save you a lot of memory when having to redraw every time you hover on it. You just need to hide and show it or update coordinates (if necessary).
  13. Hey! I sent you a PM, please check your message
  14. In my slot games, I usually use the animatedSprite for images on each reel and use TweenMax to make slot effects. Typically, the use of animatedSprite for slot games is much better with using spines.
  15. I fixed the problem and i found: the movie clip can't change textures in game play if you missing call gotoAndStop or gotoAndPlay after you set textures file! gotoAndPlay or gotoAndStop call textures in movieClip and my MovieClip has change!