|
How to keep from retriggering an impact?
#386681
11/08/11 10:36
11/08/11 10:36
|
Joined: Feb 2006
Posts: 124 Dallas,TX
Delirium
OP
Member
|
OP
Member
Joined: Feb 2006
Posts: 124
Dallas,TX
|
Lire-C...the player is moving fine, either standing or walking. What I want advice on how can I make it do is what you see in PS3 games, the player walks up to a note on the wall and a panel pops up which says "Press return to examine". How to do this and not keep re triggering it because you're next to the object? I have an easy to understand impact action from Aum 103/code/Events. I know how to code panels. I need to trigger the action only once. When I got it to trigger a sound, the sound triggers endlessly, a horrible nose until I back away from the model with the impact code attached. How can I get it to detect the player and do some things, say leave the panel on the screen until a button is pressed? Ideally I'd like two choices, like press A to view panel or B to break out of the loop.
Learning to write lite-C -- A8 commercial
|
|
|
Re: How to keep from retriggering an impact?
[Re: Superku]
#386683
11/08/11 11:27
11/08/11 11:27
|
Joined: Feb 2006
Posts: 124 Dallas,TX
Delirium
OP
Member
|
OP
Member
Joined: Feb 2006
Posts: 124
Dallas,TX
|
That looks like exactly what I need. say, I was just making a tga panel for this function and tried to code a panel and even the syntax for that changed, testing it the level says "panel" undeclared identifier. Here is my panel code:
panel* press_pan = {pos_x =400; pos_y=100; layer = 11; bmap = look.tga; flags = overlay; }
I put that code before the main{} and was going to call it within the action by a "reset (presspan, show);"
Last edited by Delirium; 11/08/11 11:27.
Learning to write lite-C -- A8 commercial
|
|
|
Re: How to keep from retriggering an impact?
[Re: Delirium]
#386684
11/08/11 11:42
11/08/11 11:42
|
Joined: Feb 2010
Posts: 320 TANA/Madagascar
3dgs_snake
Senior Member
|
Senior Member
Joined: Feb 2010
Posts: 320
TANA/Madagascar
|
Hi, perhaps
PANEL* press_pan =
{
pos_x = 400; pos_y=100;
layer = 11;
bmap = "look.tga";
flags = OVERLAY;
}
Last edited by 3dgs_snake; 11/08/11 11:43.
|
|
|
Re: How to keep from retriggering an impact?
[Re: 3dgs_snake]
#386685
11/08/11 12:02
11/08/11 12:02
|
Joined: Feb 2006
Posts: 124 Dallas,TX
Delirium
OP
Member
|
OP
Member
Joined: Feb 2006
Posts: 124
Dallas,TX
|
Is that any diffferent than this? I tried this panel code, which is working in a RPG inventory code, just changing the name of the panel and the tga, and it say "Undeclared Identifier" What is this undeclared identifier I frequently get? doesn't describing it declare it? How do I "declare" it?
PANEL* p1_help = // panel to show { bmap = look_tga; pos_y = -2; // feel free to play with this value layer = 10; flags = SHOW; }
Learning to write lite-C -- A8 commercial
|
|
|
Re: How to keep from retriggering an impact?
[Re: Superku]
#386687
11/08/11 12:59
11/08/11 12:59
|
Joined: Feb 2006
Posts: 124 Dallas,TX
Delirium
OP
Member
|
OP
Member
Joined: Feb 2006
Posts: 124
Dallas,TX
|
That did seem to correct it. Thanks.
Learning to write lite-C -- A8 commercial
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|