Gamestudio Links
Zorro Links
Newest Posts
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
1 registered members (Akow), 1,403 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2 questions about terrain programming #323536
05/15/10 11:38
05/15/10 11:38
Joined: Nov 2008
Posts: 196
the wrong place
Muhsin Offline OP
Member
Muhsin  Offline OP
Member

Joined: Nov 2008
Posts: 196
the wrong place
Hi!

I got 2 questions about terrain:

1. is it possible to move af terrain by coding and how do I do it? I tried c_move, but it didn't work.

2. is it possible to change terrain skin by coding and how do I do it?

I got the free version of gamestudio

thanks!

- Muhsin Kaymak


Come and play my new browsergame - Valley Of Wolves:

http://www.mafiacreator.com/ValleyOfWolves

Hurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it!
And be the most feared MafiaBoss in the World!!
Re: 2 questions about terrain programming [Re: Muhsin] #323539
05/15/10 12:03
05/15/10 12:03
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
1: use my.x,y,z for move the hole Terrain.
2: ent_setskin();

Re: 2 questions about terrain programming [Re: Widi] #323545
05/15/10 12:40
05/15/10 12:40
Joined: Nov 2008
Posts: 196
the wrong place
Muhsin Offline OP
Member
Muhsin  Offline OP
Member

Joined: Nov 2008
Posts: 196
the wrong place
Hi!

thanks for you answer!
I can't make the first one work. can you please give an example.
here is what i tried:

-----------------------------------
action moving_terrain()
{
while(1)
{
c_move(me, nullvector, vector(0,0,5*time_step), NULL);

wait(1);
}
}
--------------------------------------
and:
--------------------------------------
action moving_terrain()
{
while(1)
{
my.z +=5*time_step;

wait(1);
}
}
------------------------------------
and:
-----------------------------------
action moving_terrain()
{
while(1)
{
my.z +=5;

wait(1);
}
}
------------------------------------
none of them worked.


thanks!


- Muhsin Kaymak


Come and play my new browsergame - Valley Of Wolves:

http://www.mafiacreator.com/ValleyOfWolves

Hurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it!
And be the most feared MafiaBoss in the World!!
Re: 2 questions about terrain programming [Re: Muhsin] #323554
05/15/10 13:49
05/15/10 13:49
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Have you set the DYNAMIC flag for the terrain?


Always learn from history, to be sure you make the same mistakes again...
Re: 2 questions about terrain programming [Re: Uhrwerk] #323556
05/15/10 13:58
05/15/10 13:58
Joined: Nov 2008
Posts: 196
the wrong place
Muhsin Offline OP
Member
Muhsin  Offline OP
Member

Joined: Nov 2008
Posts: 196
the wrong place
no, how do i do that?


Come and play my new browsergame - Valley Of Wolves:

http://www.mafiacreator.com/ValleyOfWolves

Hurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it!
And be the most feared MafiaBoss in the World!!
Re: 2 questions about terrain programming [Re: Muhsin] #323557
05/15/10 14:05
05/15/10 14:05
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Either set the flag through wed or in your code write:

my->eflags |= DYNAMIC;


Always learn from history, to be sure you make the same mistakes again...
Re: 2 questions about terrain programming [Re: Uhrwerk] #323558
05/15/10 14:20
05/15/10 14:20
Joined: Nov 2008
Posts: 196
the wrong place
Muhsin Offline OP
Member
Muhsin  Offline OP
Member

Joined: Nov 2008
Posts: 196
the wrong place
it doesn't work...
if you got time, can you please write an little example, where the terrain moves up?

thanks!


Come and play my new browsergame - Valley Of Wolves:

http://www.mafiacreator.com/ValleyOfWolves

Hurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it!
And be the most feared MafiaBoss in the World!!
Re: 2 questions about terrain programming [Re: Muhsin] #323562
05/15/10 15:27
05/15/10 15:27
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
try to save the terrain as a model.
then it works


Visit my site: www.masterq32.de
Re: 2 questions about terrain programming [Re: MasterQ32] #323602
05/15/10 19:05
05/15/10 19:05
Joined: Apr 2010
Posts: 265
V
Vinous_Beret Offline
Member
Vinous_Beret  Offline
Member
V

Joined: Apr 2010
Posts: 265
hi guyes,
1_you can't move terrain's in reall time.
2_if you must move it try to convert it to a model first.
hope that's helped you.

Re: 2 questions about terrain programming [Re: Vinous_Beret] #323605
05/15/10 20:02
05/15/10 20:02
Joined: Nov 2008
Posts: 196
the wrong place
Muhsin Offline OP
Member
Muhsin  Offline OP
Member

Joined: Nov 2008
Posts: 196
the wrong place
thanks everybody!

I converted it to model and now it works!


thanks!


- Muhsin Kaymak


Come and play my new browsergame - Valley Of Wolves:

http://www.mafiacreator.com/ValleyOfWolves

Hurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it!
And be the most feared MafiaBoss in the World!!

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