How to move Sprite randomly on scene in AndEngine for example like mosquito movement - sprite

I'm developing an AndEngine game in which I want to move the Sprite randomly on scene like mosquito movement. Its a simple sprite and not a physics body.

Related

ThreeJS | Hide the tube when my camera is within it

I have a scene with a Tube(Material side set to BackSide)and other things(not relevant to question) and a camera flying through the scene including travelling through the tube. I would like to hide the tube when the camera is within the tube.
Ideally setting the Tube to Front side would have solved this question. However the tube is set to backside by design. I could check the camera look at position and check if it is within the circumference of the tube, but figuring out the radial segment of the tube seems challenging.
In the picture, the tube needs to be hidden during the red dashed portion of the camera trajectory.
Any suggestions ?

How to implement location buffer that in Arcgis runtime Scene

Hi i am trying to implement location buffer for a scene, I know how to implement one for map but i don't know how to implement for one in Scene.
I tried to implement a graphics overlay symbol at the location which would appear and disappear and reappear so that it looks like its moving while in latitude and longitude changes but it's not working.

Making a drawing game using phaser

I am developing a game using Phaser where a user is rendered a triangular canvas. User can crop this canvas to any possible shape by drawing any crop pattern on the canvas. Besides this, i need to get this cropped canvas in suitable data format to be used as an image to render and also trace changes made on this canvas for undoing puspose.
Any help to get this through will be appreciated.
Thanks in advance.
Initial canvas
Canvas after crop
Cropped canvas used to create new canvas
So it's like folding a piece of paper and then cutting it so it looks like a snowflake? Interesting idea.
I think you could either use BitmapData to draw the initial cut out, then copy that bitmap 6 (or 12?) times and rotate and flip x-axis to construct the rest. Though maybe there will be seems, so like small lines, between the parts idk.
Another appproach would be to keep track of the initial cutlines like vectors. Then use math/trigonometry to calculate the result. No idea how to do this though, sorry.

Phaser - How to access a certain element on the layer

Hello i recently started to study Phaser and i have came to a problem witch i need help with solving.
I created a 3 layer map with Tiled. SkyLayer, GroundLayer, BrickLayer. I added physics that allow the player to move around the GroundLayer. I also added physics that allow him to jump on the BrickLayer. I am struggling to make a motion that allows the player to jump from the bottom hit the brick with his head, when he hits his head the motion of the brick to move up a pixel and then back down a pixel just as in Mario. I have trouble finding out how to identify which brick section i have hit from the BrickLayer so i can later on apply the animation to the brick element.
Simple Layers itself contains only tiles, which has no any animation.
If you need something to have animation, you need to use object layer and convert its objects to sprites with TileMap.createFromObjects.

get color on click texture three.js

(sorry for my bad english)
I'm using Three.js to create a panorama. I would like to know if it is possible to get the color of a texture which I clicked on?
For that, I already have created a sphere and I can get the 3D coordinates on the sphere where I clicked (using, raycaster, projection,...).
The texture on the sphere is a ".png" with transparency. The area I would like to detect is colored :
Could you help me?

Resources