Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Newbie Questions
by AndrewAMD. 12/04/23 11:14
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (TipmyPip, izorro), 556 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
overlay? #124931
04/19/07 03:04
04/19/07 03:04
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
im wonder im making a game and i want something(a model) to be ontop of everything(in the top layer) so even if you standing behind a wall you can see it. it acts as a pointer in missions shows you where to go. how would i do this?
EDIT: oh and is there a way to just have a few models(not ai, too complicated for me) folow you and shoot enemies. i know you can make some models follow you. but can i make them attack enemies. sort of as helpers? is there a code snippete some where or can i find it in the manual. and is there like a book or website that can teach me how to c-script? cus my fingers are gonn fall off if i ask one more question in the 3dgs forum.

Last edited by not_me; 04/19/07 03:09.

-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: overlay? [Re: not_me] #124932
04/19/07 03:08
04/19/07 03:08
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
I think there's a flag for this. Something like my.near = on;


xXxGuitar511
- Programmer
Re: overlay? [Re: xXxGuitar511] #124933
04/19/07 07:56
04/19/07 07:56
Joined: May 2005
Posts: 819
U.S.
Why_Do_I_Die Offline
Warned
Why_Do_I_Die  Offline
Warned

Joined: May 2005
Posts: 819
U.S.
As for the model to be on top of everything , if it has to be a model , then you can use a view entity , even though I've never used one , technically that should work because you can assign a layer number and they are more or less treated like panels , otherwise a panel would be the way to go. About the models following you and shooting at enemies , it's simple , just make an action for them , and have this action detect enemies , and have them shoot at them if they detect them. Or , you can actually code this into your players action , where if he is aroudn some enemies , the player's action can then trigger the shoot or attack function of the helpers. To detect enemies it's not too complex , basically just a scan or trace (depending on if you wanna detect all aroudn the player or just in front) and something like if (result!=null&&you.skill70>0){helpers_attack();} , Something like that should work , look for more info on scan and trace and the like , but it's not too hard.Btw , you would need to call that in a loop , or if you call it from within the players action or function just make sure it's within the while(1) and the wait(1); , because you have to keep checking for enemies. I used skill 70 but you can use any skill you want , and just make sure that the enemies get that skilled assigned to them in their creation either through script or in wed. Just look for more info on the manual about scan and trace , and if your using templates , open them up in SED and take a look at the code , it might look really confusing , but it's not impossible to figure out. As for learning to script , well there's the manual , which includes the learn wdl in 7 days or something , and it's the best reference you can have , there's also the AUM (Acknex User Magazine) which is very very good , it includes a ton of scripts for many different types of things which are very helpfull , you should definately check it out, there's also Grimber's site , which also has a ton of scripts and tutorials as well as other resources , and dont forget to check out AU Resources link in the main Gamestudio Homepage , it includes everything from tutorials to scripts to models and demos. Good luck.

Re: overlay? [Re: Why_Do_I_Die] #124934
04/19/07 11:28
04/19/07 11:28
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
@xXxGuitar511: its znear: "my.znear = on;"

Re: overlay? [Re: Xarthor] #124935
04/19/07 14:08
04/19/07 14:08
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Ah, I had a feeling about the z, but I wasn't sure


xXxGuitar511
- Programmer

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