Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Daniel_1988

#1
To save some further post, what do they do and where do they need to go?
I've messed with them some but nothing has changed.

I've just been copying and pasting them out of tutorials.
It didn't throw an error on the first one and it's exactly the same.
#2
function Lock_UseInv() {
  if (player.ActiveInventory == iKey){
    Lock.Visible = false;
}

function Gate_AnyClick() {   Getting and error on this line saying Nesting Functions not
if (Lock.Visible == false)                                                                                     supported
    Gate.Visible = false;
}
#3
Read the topic that I have posted about gate's.
#6
I have read the tutorial(maybe I'm missing something?), and watched every youtube video by one guy. The youtube videos were very basic. Thanks a TON for helping, I'm sure there are tons of questions like this from people who didn't read the tutorial.

I think it will work how I have it, But I'm getting an parse error On line 5.

function Lock_UseInv() {
  if(player.ActiveInventory == iKey){
    Lock.Visible == false;
}

I wouldn't bother posting it, but since were on the subject.
#7
I have been reading tutorials! maybe I'm not looking in the right place. Under scripting there is very little and when I look up object stuff I don't see what I need.

I was actually doing this right before you posted, But got stuck at "If the gate is clicked, check for the lock's visibility" What would the script be to check if the lock is gone?

function Gate_AnyClick()
{
if(object[1].Visible = false)
object[0].Visible = false;
}

This is the only thing I can think of and it doesn't work L((

But if it did work, Would I be able to click on a hotspot behind it? As it's "invisible" not removed.
#8
I'm making a very basic game, it's a first person-point and click type thing using hotspots to change rooms.
But now I am to where I need a gate. I need to have a key open the lock, then the gate open or disappear. Only thing after the gate is a hotspot to change rooms.
I have a key Inv item, and a lock object. I suppose the gate needs to be an object too?

Basically a hotspot behind the gate. The gate should be an object so It can be removed to show the hot spot behind it? Then the Lock Object will be on top of the gate object. I need to know how to get the key item to interact with the lock and remove the gate, to reveal the hotspot.

:( I can't find a tutorial on this. If someone could link me to something in the right way on like Object and Item interactions. I'm not sure what to do on the gate.

Heh this is probably really easy for you guys. I looked at some of the in progress games and they make me feel like an idiot!
SMF spam blocked by CleanTalk