Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
2 registered members (AndrewAMD, exile), 1,217 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19056 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
sliding doors? #234360
11/02/08 15:00
11/02/08 15:00
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline OP
Serious User
jigalypuff  Offline OP
Serious User

Joined: Nov 2005
Posts: 1,007
Could someone let me know is it better to animate the doors and use a trigger to get them to open or is it easier to script sliding doors? and if it is easier anyone got a script to share smile


Why does everyone like dolphins? Never trust a species which smiles all the time!
Re: sliding doors? [Re: jigalypuff] #234383
11/02/08 17:39
11/02/08 17:39
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
I would bet that its way easier
to script the whole thing.


Visit:
schwenkschuster-design.de
Re: sliding doors? [Re: aztec] #234389
11/02/08 18:04
11/02/08 18:04
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline OP
Serious User
jigalypuff  Offline OP
Serious User

Joined: Nov 2005
Posts: 1,007
Ya i guess it would be, plus i`m a tad sucky at animation smile
So got a script? one which means i need to press a pad to open the door?


Why does everyone like dolphins? Never trust a species which smiles all the time!
Re: sliding doors? [Re: jigalypuff] #234434
11/02/08 22:38
11/02/08 22:38
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
C-script or lite-c? Does the door need collision detection or is it just going to slide into a wall?

Re: sliding doors? [Re: DJBMASTER] #234438
11/02/08 22:53
11/02/08 22:53
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline OP
Serious User
jigalypuff  Offline OP
Serious User

Joined: Nov 2005
Posts: 1,007
it`ll slide into a wall, i suppose lite-c as i intend to purchase intense ai for the project. at the moment i just want some basic code for testing the levels.


Why does everyone like dolphins? Never trust a species which smiles all the time!
Re: sliding doors? [Re: jigalypuff] #234514
11/03/08 12:21
11/03/08 12:21
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Simple animation:
First frame: door is closed
second frame: door is fully opened

Now you should be able to interpolate between thoses using the percentage argument.

Example:
Code:
ent_animate(slidingDoor_ent,"opening",50,0); // door is half open


Of course the percentage var should be a real var which is increased or decreased by a loop.


Moderated by  adoado, checkbutton, mk_1, Perro 

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