Cursor as an Actor
remoncingkes
Member Posts: 26
Hello guys, I'm new here. And I'm working on my first game here and i got stuck. Is it possible to make Cursor as an Actor? like "scary maze game". If its possible, please help me. Please please please!
Best Answer
-
tatiang Posts: 11,949
One of my students made a game exactly like that but he couldn't hide the cursor.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
"Is it possible to make Cursor as an Actor?"
Not 100% what you are after ? Do you want an image of a cursor (the movable computer pointer we all know and love) applied to an actor ?
I want my cursor as the actor. The main actor. Just like "scary maze game" website. As we press the start button, The cursor become the main character. Can you help me?
If you are trying to make a game where you move the mouse and avoid walls/obstacles, you would just constrain self.position.x (and y) to game.mouse.position.x (and y) and not place the constrain behavior inside of a rule. Obviously, this won't work on a mobile device unless you add a touch is inside rule.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thank You for the answer @tatiang. I did what you said last night. If i constrain self.position.x (and y) to game.mouse.position.x (and y) and not place the constrain behavior inside of a rule. The problem is, i can still see the mouse. What i ask is, is it possible to make the cursor as the actor just like "scary maze game website". When we play the cursor become the main actor.
I think the problem here one of language, all the terms, actor, cursor, mouse and so on are being used in a fairly arbitrary way, for instance . . .
"The problem is, i can still see the mouse."
. . . the only way you are not going see the mouse is if you hide it somewhere, unplug it from your computer and place it under a cushion ; P
Is your question simply "can I hiding the cursor when a game is playing" ? Rather than all this stuff about making cursors into actors and seeing (or not seeing) mice ?
If you're making a game for Mac OS, I don't believe you can hide the cursor.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Yep, I think you are right, you can't hide it.
hmm.. i think you don't get what i asked @Socks. I said just like "scary maze website game". Haven't you seen it man? Well then i think no one can do it here. Anyways thank you for all the answers man @tatiang
As far as I can work out your question "Is it possible to make Cursor as an Actor?" simply means that you don't want to see the cursor during gameplay only the actor you control with your mouse ?
Yep, the cursor cannot be hidden during gameplay.