Teleport bug and solution

All talk relating to Edward, the Flash platform game engine. (Forum is now locked)

Teleport bug and solution

Postby Veins » Tue Jan 18, 2011 10:28 am

I tried to have keys that unlock teleports. If I have keys named "1","2" and "3" that unlock doors "1","2" and "3" respectively, then, only the first key that I get works! I'm surprised nobody mentioned this.

In any case here is the solution. Change the following code:
line 882: replace keyOwned[i] with keyOwned[k]
line 892: replace keyOwned[i] with keyOwned[k]
Posts: 3
Joined: Sun Jan 09, 2011 4:27 am

Re: Teleport bug and solution

Postby maze » Wed Jan 19, 2011 5:06 am

Thank you, I was wondering about this. I asked a question about this a few days ago. This worked accept that it's "keysOwned[k]", not "keyOwned[k]".
Posts: 5
Joined: Thu Jan 13, 2011 5:04 am

Return to Edward Topics

Who is online

Users browsing this forum: No registered users and 1 guest