Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
0 registered members (), 938 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Clicking on 3d objects? #143158
07/24/07 14:44
07/24/07 14:44
Joined: Nov 2006
Posts: 193
England
RyuShinji Offline OP
Member
RyuShinji  Offline OP
Member

Joined: Nov 2006
Posts: 193
England
I am making a sort of 3d puzzle game, But I need to be able to click on the 3d objects with the mouse, how can i do this??

Last edited by RyuShinji; 07/24/07 15:06.
Re: Clicking on 3d objects? [Re: RyuShinji] #143159
07/24/07 15:12
07/24/07 15:12
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
Code:
 my.enable_click = on;

later then
if(event_type == event_click)


attach this your puzzeles action.


Visit:
schwenkschuster-design.de
Re: Clicking on 3d objects? [Re: aztec] #143160
07/24/07 15:44
07/24/07 15:44
Joined: Nov 2006
Posts: 193
England
RyuShinji Offline OP
Member
RyuShinji  Offline OP
Member

Joined: Nov 2006
Posts: 193
England
im sure i've done every thing right could someone please tell me why this doesnt work.

var video_mode = 7;
var video_depth = 32;


function Main
{
level_load("prjectd.wmb");

}

function click_function()
{
if(event_type == event_click)
{
my.z = 50;
}
}

action die_action
{
my.enable_click = on;
my.event = click_function;
}

thats my whole code by the way...

Last edited by RyuShinji; 07/24/07 15:46.
Re: Clicking on 3d objects? [Re: RyuShinji] #143161
07/24/07 15:56
07/24/07 15:56
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Code:

function Main
{
level_load("prjectd.wmb");
wait(2);// at least, you need to wait until
// the level is loaded completely.
}



Re: Clicking on 3d objects? [Re: vlau] #143162
07/24/07 16:01
07/24/07 16:01
Joined: Nov 2006
Posts: 193
England
RyuShinji Offline OP
Member
RyuShinji  Offline OP
Member

Joined: Nov 2006
Posts: 193
England
thank you vlau ^_^ as you can see im a bit rusty, not that i knew all that much to start with...

so do you know whats wrong with my code??

like I said thats my whole code i am only using 1 script at the moment...

Last edited by RyuShinji; 07/24/07 16:03.
Re: Clicking on 3d objects? [Re: RyuShinji] #143163
07/24/07 16:12
07/24/07 16:12
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Code:

function Main()
{
level_load("prjectd.wmb");
wait(1);

mouse_mode = 1; // enable engine mouse
mouse_range = 20000; // Range within click, touch, or release events of
// entities can be triggered by the mouse (default
// 1000 quants. Copied from the Menu ;)


while(1)
{
mouse_pos.x = mouse_cursor.x; // keep the mouse pointer synchronize
mouse_pos.y = mouse_cursor.y; // with the engine mouse.

wait(1);
}
}



Re: Clicking on 3d objects? [Re: vlau] #143164
07/24/07 16:23
07/24/07 16:23
Joined: Nov 2006
Posts: 193
England
RyuShinji Offline OP
Member
RyuShinji  Offline OP
Member

Joined: Nov 2006
Posts: 193
England
YEEY!! It works thankyou so much!! ^_^


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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