Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Martin_HH, TipmyPip), 1,279 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Player getting stuck in moving Map Entities #73164
05/04/06 16:04
05/04/06 16:04
Joined: Apr 2006
Posts: 33
Sweden
D
dby Offline OP
Newbie
dby  Offline OP
Newbie
D

Joined: Apr 2006
Posts: 33
Sweden
I got a couple of cubes rotating on all axis, and it's really easy to get stuck in them when the player gets too close. Any simple solution? I only got a week to finish this small "game" for an art exhibition. I'm really new to 3DGS, only had time to do some basic tutorials. Some grant money to buy the professional version could be at stake here!! So any help would be greatly appreciated.

Re: Player getting stuck in moving Map Entities [Re: dby] #73165
05/04/06 16:18
05/04/06 16:18
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
You are going to need to show us the code you are working with so we can have an idea what your problem is.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: Player getting stuck in moving Map Entities [Re: FoxHound] #73166
05/04/06 16:52
05/04/06 16:52
Joined: Apr 2006
Posts: 33
Sweden
D
dby Offline OP
Newbie
dby  Offline OP
Newbie
D

Joined: Apr 2006
Posts: 33
Sweden
Any particular part of it? Some are templates from the template dir, and some are included from tutorials. I modified input.wdl to get strife on cur and cul by adding // to line 52:

// aforce.PAN = -astrength.PAN*(KEY_FORCE.X+JOY_FORCE.X);

and changing , and . to cur and cul in line 88:

force.Y = strength.Y*(KEY_CUL-KEY_CUR); // side to side


And fixed mouse sensitivity by chaning some values in movement.wdl line 173:

var astrength[3] = 5,10,2; // default pan, tilt, roll strength


And this is assigned to the cube map entity:
action cubeSpin
{
var rotateSpeed;
rotateSpeed = 1;

while(1)
{
my.pan += rotateSpeed;
my.roll += rotateSpeed;
my.tilt += rotateSpeed;
wait(1);
}
}

Man, I wish I had time to do some more tutorials before attemting this.

Re: Player getting stuck in moving Map Entities [Re: dby] #73167
05/04/06 16:58
05/04/06 16:58
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
This is your problem.

my.pan += rotateSpeed;
my.roll += rotateSpeed;
my.tilt += rotateSpeed;

There is no collision detection going on there. Look up "c_rotate" in the manual. That should set you in the right direciton.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: Player getting stuck in moving Map Entities [Re: FoxHound] #73168
05/04/06 17:10
05/04/06 17:10
Joined: Apr 2006
Posts: 33
Sweden
D
dby Offline OP
Newbie
dby  Offline OP
Newbie
D

Joined: Apr 2006
Posts: 33
Sweden
Thanks a lot! I hope I can figure this out now... getting really confused by all these scripts. Especially when I want to use some submitted scripts that turn out to be for A5. I haven't given programming a shot since C64 BASIC hehe. I bet I'll make a few more posts during these next few days. Cheers!

Re: Player getting stuck in moving Map Entities [Re: dby] #73169
05/04/06 17:14
05/04/06 17:14
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
Feel free to ask, there are plenty of us here willing to help those that are willing to help themselfs.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: Player getting stuck in moving Map Entities [Re: FoxHound] #73170
05/04/06 19:14
05/04/06 19:14
Joined: Apr 2006
Posts: 33
Sweden
D
dby Offline OP
Newbie
dby  Offline OP
Newbie
D

Joined: Apr 2006
Posts: 33
Sweden
I got it to work a little bit better. Still getting stuck, but not totally. I'm trying to figure out event_push to push the player away from any moving entity, but I don't get it. I think I need to look through all the templates carefully... forcefield01 looks useful.


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