Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
position my sprite in mouse click #413111
12/08/12 09:04
12/08/12 09:04
Joined: Oct 2012
Posts: 53
K
kenced Offline OP
Junior Member
kenced  Offline OP
Junior Member
K

Joined: Oct 2012
Posts: 53
hi! in every click I want to position my sprite. how can I do this?.

Re: position my sprite in mouse click [Re: kenced] #413112
12/08/12 09:08
12/08/12 09:08
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
when using this:

on_mouse_left = a_function;

...a_function gets called everytime you click.


POTATO-MAN saves the day! - Random
Re: position my sprite in mouse click [Re: Kartoffel] #413113
12/08/12 09:14
12/08/12 09:14
Joined: Oct 2012
Posts: 53
K
kenced Offline OP
Junior Member
kenced  Offline OP
Junior Member
K

Joined: Oct 2012
Posts: 53
thank you for your reply but my problem is the position of the sprite or the entity. how can I equal the position of the sprite to mouse_pos.x and mouse_pos.y?

Re: position my sprite in mouse click [Re: kenced] #413115
12/08/12 09:22
12/08/12 09:22
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
theres a vector called mouse_pos3d.
That's prabably what you're looking for wink


POTATO-MAN saves the day! - Random
Re: position my sprite in mouse click [Re: Kartoffel] #413116
12/08/12 09:32
12/08/12 09:32
Joined: Oct 2012
Posts: 53
K
kenced Offline OP
Junior Member
kenced  Offline OP
Junior Member
K

Joined: Oct 2012
Posts: 53
nice!. oh thank your help. laugh

Re: position my sprite in mouse click [Re: kenced] #413121
12/08/12 10:13
12/08/12 10:13
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
no problem.

You'll probably need some vector-math to make it work like you want.
...so if there are any problems with this part feel free to ask for some more help wink


POTATO-MAN saves the day! - Random

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1