3 registered members (Akow, TipmyPip, tomaslolo),
788
guests, and 11
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
OP
Member
|
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/ValleyOfWolvesHurry 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: Widi]
#323545
05/15/10 12:40
05/15/10 12:40
|
Joined: Nov 2008
Posts: 196 the wrong place
Muhsin
OP
Member
|
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/ValleyOfWolvesHurry 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
Expert
|
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: Muhsin]
#323557
05/15/10 14:05
05/15/10 14:05
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
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
OP
Member
|
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/ValleyOfWolvesHurry 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: Vinous_Beret]
#323605
05/15/10 20:02
05/15/10 20:02
|
Joined: Nov 2008
Posts: 196 the wrong place
Muhsin
OP
Member
|
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/ValleyOfWolvesHurry 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!!
|
|
|
|