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
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,655 guests, and 7 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
entity relative movement on the other entity #306400
01/21/10 21:49
01/21/10 21:49
Joined: Jan 2010
Posts: 44
Galati, Romania
CItrok Offline OP
Newbie
CItrok  Offline OP
Newbie

Joined: Jan 2010
Posts: 44
Galati, Romania
I want to learn how to complete the following program. One entity (entity 1) is moving along X axis. On it, there is another entity (entity 2) that is moving on the first entity. Is there any function to handle this?

To note that the second entity is not always on the first entity, so I don't want to use bones ( If I am wrong please correct me - I am a beginner)

Here is a picture to better depict the idea.


Re: entity relative movement on the other entity [Re: CItrok] #306415
01/22/10 04:07
01/22/10 04:07
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
The program itself isn't that hard really, it is just how you want to use that would suggest how to implant this. Give me a bit more info on why you want to do this and I can tell you a good way to get this to work.


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


QUIT LOOKING FOR ONE!
Re: entity relative movement on the other entity [Re: FoxHound] #306423
01/22/10 08:30
01/22/10 08:30
Joined: Jan 2010
Posts: 44
Galati, Romania
CItrok Offline OP
Newbie
CItrok  Offline OP
Newbie

Joined: Jan 2010
Posts: 44
Galati, Romania
I am newbie, As an exercise I am trying to develop a game in which the player ( entity 1) must move on several boxes ( entity 2) to reach a point. ( without falling of the boxes). Let's say the boxes are in water or something. The boxes are moving ( for the first try, are moving along one axis).

My problem is how to handle the player movement. I know how to move an entity. But I need to know how should I move the player on the box, though the box is moving in the some time.

I just need some tips to do this. I mention that the "biggest" program in lite-c is 2 pages long. laugh

FoxHund, If you need more info just let me know.


Last edited by CItrok; 01/22/10 09:03.
Re: entity relative movement on the other entity [Re: CItrok] #306490
01/22/10 16:28
01/22/10 16:28
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
This one should be pretty easy, move each of these normally, using C_move or whatever, and basically check and see if the player connects with the water. A cheap way of doing that would be to see if his Z dropped to low.


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


QUIT LOOKING FOR ONE!

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