Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (ozgur, degenerate_762, 7th_zorro), 1,081 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Intense X Copper + own physics #270446
06/08/09 11:35
06/08/09 11:35
Joined: Jul 2008
Posts: 191
M
MDMDFSS Offline OP
Member
MDMDFSS  Offline OP
Member
M

Joined: Jul 2008
Posts: 191
Why does that don`t work?
:

______________________________________________________________________________
#include <IntenseX.h>//I know this is not the problem


ENTITY* eBall;


void main()
{
video_mode = 10;
video_screen = 1;
shadow_stencil = 3;

ENTITY* sky = ent_createlayer("skycube+6.dds", SKY | CUBE | SHOW, 0);
sky.z = 30;
}

action rock()
{
set(my,POLYGON);//I know this is not the problem
set(eBall,SHADOW);
phent_settype(eBall,PH_RIGID,PH_BOX);
phent_setmass(eBall,50,PH_BOX);
phent_setfriction(eBall,48);
phent_setelasticity(eBall,15,10);
phent_setdamping(eBall,20,20);
ph_setgravity(vector(0,0,-600));
}

Without action rock() and ENTITY* eBall; works evrything fine.

But wenn I open The level, it gives me for every model that I gave the action (action rock) an error:

//crash with rock!//

What is wrong???

Last edited by MDMDFSS; 06/08/09 11:46.
Re: Intense X Copper + own physics [Re: MDMDFSS] #270478
06/08/09 13:34
06/08/09 13:34
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
include this to your action
eBall = me;


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Intense X Copper + own physics [Re: alibaba] #270496
06/08/09 14:31
06/08/09 14:31
Joined: Jul 2008
Posts: 191
M
MDMDFSS Offline OP
Member
MDMDFSS  Offline OP
Member
M

Joined: Jul 2008
Posts: 191
now it works!

Thank you man.

Last edited by MDMDFSS; 06/08/09 14:32.
Re: Intense X Copper + own physics [Re: MDMDFSS] #270695
06/09/09 11:55
06/09/09 11:55
Joined: Jul 2008
Posts: 191
M
MDMDFSS Offline OP
Member
MDMDFSS  Offline OP
Member
M

Joined: Jul 2008
Posts: 191
But I still have another problem.

Wenn I shoot or hit a stone nothing happens, I think that is because the bullets from Intense X are passable (I don`t know wy), but how can I still shoot my physicobjeckts so thaz they fly all over the place???

here is my main code (physicobjeckts):

___________________________________________________________________________________________________________________

#include <IntenseX.h>


ENTITY* eBall;



void main()
{
video_mode = 10;
video_screen = 1;
shadow_stencil = 3;

ENTITY* sky = ent_createlayer("skycube+6.dds", SKY | CUBE | SHOW, 0);
sky.z = 30;
}
//What can I add to rock???
action rock()
{
eBall = me;
my.emask |= ENABLE_SCAN;
my.emask |= ENABLE_BLOCK;
set(my,POLYGON);
set(eBall,SHADOW);
phent_settype(eBall,PH_RIGID,PH_BOX);
phent_setmass(eBall,50,PH_BOX);
phent_setfriction(eBall,48);
phent_setelasticity(eBall,15,10);
phent_setdamping(eBall,20,20);
ph_setgravity(vector(0,0,-600));
}

action stone()
{
set(my,POLYGON);
}

Last edited by MDMDFSS; 06/09/09 11:57.
Re: Intense X Copper + own physics [Re: MDMDFSS] #271107
06/11/09 10:01
06/11/09 10:01
Joined: Jul 2008
Posts: 191
M
MDMDFSS Offline OP
Member
MDMDFSS  Offline OP
Member
M

Joined: Jul 2008
Posts: 191
Hallo?????

Re: Intense X Copper + own physics [Re: MDMDFSS] #271113
06/11/09 10:11
06/11/09 10:11
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
please wait some days. i´m trying si solve this prblem.
i´ve IX ,too.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Intense X Copper + own physics [Re: alibaba] #271350
06/12/09 14:41
06/12/09 14:41
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
you need to apply a force to the ball when it gets shotted, search the manual for event_shoot and phent_addforelocal....

Re: Intense X Copper + own physics [Re: darkinferno] #271401
06/12/09 21:59
06/12/09 21:59
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
i know this but it doesn´t work.i think the bullets have another .push.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Intense X Copper + own physics [Re: alibaba] #271611
06/14/09 08:03
06/14/09 08:03
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
you should ask LarryLaffer, he programs this

Re: Intense X Copper + own physics [Re: the_mehmaster] #271614
06/14/09 08:41
06/14/09 08:41
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
slacer Offline
Expert
slacer  Offline
Expert

Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
There is a new post about physics with Intense X in the Intense-I Forum showing how to do it.

I had to search for event handling in Intense X source code to find they are using SHOOT events to detect the bullets...

Intense Forum - physics thread

-- slacer


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