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
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hello,
Been awhile since I used C2. I forgot and cant seem to find how to detect mouse.x if it is growing or decreasing so I can pass some left and right vars. Simple I am sure, but cant figure it out and I am on a tight deadline. So,.. need some help.
Develop games in your browser. Powerful, performant & highly capable.
check if mouse.x is greater than variableX
if greater, then set direction to right, else left.
set variableX to mouse.x
That is how I had it, but I am only able to detect if mouse.X is greater or less if I delay the varX. Otherwise it will never be greater or less it will be the same.
Ahh. Stupid me. I had the varX set in everytick and not the if statement itself.