Pointer object

New releases and general discussions.

Post » Fri Nov 06, 2009 10:35 pm

its the exact same thing, just make sure your hot spot on the sprite is where you want the "clicking zone" to be, since the top left corner of the mouse (THE POINT) is where the object will be positioned.
so if you had an image of a mouse cursor, youd put the hotspot at the top left so that it behaves like a real mouse.

a cursor object is redundant and useless, as it would essentially be doing the exact same thing as this.

no games ever actually change the cursor, they just use this method.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Fri Nov 06, 2009 10:52 pm

Well, there is still a problem and it seems nobody saw it apart me...or I'm wrong.

My sprite (used as a pointer with the Mouse movement and the REAL cursor hidden) can't go forward a button object, for example. I say "for example" because I only tried with a button.
See? The sprite is [u:31406z5s]under[/u:31406z5s] the button, even if I do "Move Forward" or "Bring to Front".

This is a problem we wouldn't have with a cursor.

Maybe the best way is to resolve this on the already-existing Mouse Movement behavior.

Kan
B
11
S
3
G
3
Posts: 206
Reputation: 2,379

Post » Fri Nov 06, 2009 11:23 pm

The button object is always on top. So your solution is to make up your own button out of a sprite.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Fri Nov 06, 2009 11:55 pm

windows controls will always appear on top, solution: don't use them they're glitchy crap anyways, make your own buttons. now a button object to make different types of controls easy to make would be nice.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sat Nov 07, 2009 12:53 am

[quote="QuaziGNRLnose":159cr3zh]windows controls will always appear on top, solution: don't use them they're glitchy crap anyways[/quote:159cr3zh]
yeah, pretty much. there's so many problems with windows controls it's insane.
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat Nov 07, 2009 4:47 am

[quote="lucid":15h2eovk][quote="QuaziGNRLnose":15h2eovk]windows controls will always appear on top, solution: don't use them they're glitchy crap anyways[/quote:15h2eovk]
yeah, pretty much. there's so many problems with windows controls it's insane.[/quote:15h2eovk]

Thirded. Making your own buttons is the best way to go.

May I suggest a little tutorial on how to accomplish this? :P
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat Nov 07, 2009 7:55 am

Fourthed'd.. oh wait.. wut?
... thought i just said that.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Mon Nov 09, 2009 7:46 pm

Okay, okay, I'll make me own buttons. But I won't refuse that tutorial! :-D I could invent a way to do that myself but I'm too idle.

I agree that an object that can let us create windows controls should be cool though.

Thanks for all your help!

Kan
B
11
S
3
G
3
Posts: 206
Reputation: 2,379

Post » Mon Nov 09, 2009 8:25 pm

Just thought I'd chime in to suggest my Sprite Button plugin. :) They act like normal sprites, so Z-ordering isn't an issue.
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

Post » Sat Nov 14, 2009 7:28 pm

That's real great!

Thank vou very much! I'll use it for sure! There's even a way to set the font size! :D

Kan

B
11
S
3
G
3
Posts: 206
Reputation: 2,379

PreviousNext

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests