Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
can any one tell me, how to give the hover using touch.
Actually i'm having 3 objects ,in mouse click i have given hover for 3 objects and the 3 objects moving with mouse, but in touch it is not moving, with touch, can any one please tell me
touch.x and touch.y only have a value while touching. If your finger is not touching the screen the value will be 0
Mouse.x and mouse.y however always have the value of where the mouse-pointer is regardless of if the button is clicked.
So when making something for a touch device, you should always be aware that there is only input while touching.
it's working cool, but i have another problem,in mouse events after droping one object it will take another object on the mouse cursor, but in touch it's not taking like that.do you have any idea.
Develop games in your browser. Powerful, performant & highly capable.
In touch there is no cursor. And it is impossible to follow anything that doesn't exist. You could compare touch (at least single touch) to a mouse only working when the left mousebutton is down.
Dropping an object in touch-mode usually means taking your finger of the screen, so all input is lost. You could try to use events to change between dragging objects, but that really depends on how your game is set up.
by "touch event: Is touching object" the object is moving and after droping that object. with out touch next object has to come on the touch display.can any one share your idea please.
I don't quite understand what you mean by touch-display.
These things can be different for different games.
Maybe this will work. On drop sprite z-order move to bottom of layer, that way the object will be behind the other dragdrop object so you can move the one that was behind it.