Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Akow, SBGuy), 1,423 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
pX_pick #347184
11/13/10 01:23
11/13/10 01:23
Joined: Dec 2003
Posts: 114
Pompano Beach,Florida USA
I
I_AM_DEFIANT Offline OP
Member
I_AM_DEFIANT  Offline OP
Member
I

Joined: Dec 2003
Posts: 114
Pompano Beach,Florida USA
I am trying to use pX_pick in my game and find the way it functions to be unnatural, when you left click you grab the object but when you release the mouse the state does not change and the object continues to remain attached to the mouse position, a second mouse click is required to release the object which according to the manual is how it is designed, this seems to cause a type of bug where if you release the mouse button (knowing that the object will remain attached) and move around, the object isn't sure how to react sometimes remaining stationary, sometimes following the mouse. (to prevent this bug you have to keep the mouse button held when moving around, yet quickly release and click again to actually release the physics object)Using this method when throwing objects this requires you to time the next mouse click to throw the object in the direction you wish it to go but any slight delay or over compensation in timing sends it off in a direction you can't predict very well or causes you to drop the object before getting a good swing. Is there a way to change this so that the object only remains attached as long as you are holding the mouse button down?,i.e left click and hold mouse button down to grab the object and move it around, if you let go the mouse button whether by accident or purposefully the object is released. I did not find anything in the manual to change the way pX_pick functions


defiant@zovera.com A_6 commercial 6.4.2 DirectX 9.0c p4 3.4 geforce 6800 ultra 256 mb 470 mhz forceware version 81.95
Re: pX_pick [Re: I_AM_DEFIANT] #347203
11/13/10 11:08
11/13/10 11:08
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
You could code something with the help of mouse_ent and switch off the objects physics, moving it depending the mouse_force.x/.y while holding the mouse button, and, when releasing the mouse button, switching on the physics of the object and applying the move as forces...

Re: pX_pick [Re: Pappenheimer] #354900
01/23/11 08:48
01/23/11 08:48
Joined: Sep 2003
Posts: 303
Germany
Clemens Offline
Senior Member
Clemens  Offline
Senior Member

Joined: Sep 2003
Posts: 303
Germany
At all, where can the pX_pick function code be found?
Would be a good physics example and in some way needful to implement.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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