# Faxanadu - Revival

**URL:** <https://forum.teamscu.com/t/faxanadu-revival/1865>\
**Category:** Indie Works\
**Created:** [January 29, 2008, 4:19am UTC](https://forum.teamscu.com/t/faxanadu-revival/1865 "2008-01-29T04:19:12Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![Candy\_Man\_Criminal](https://forum.teamscu.com/user_avatar/forum.teamscu.com/candy_man_criminal/32/673_2.png) [@Candy\_Man\_Criminal](https://forum.teamscu.com/u/Candy_Man_Criminal)\
**Post date:** [February 5, 2008, 4:12am UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/21 "2008-02-05T04:12:08Z")

</div>

ok, sorry ^^;;

well  
when you hit up in the presense of a ladder youre supposed to attach to it  
if you hold up, you climb up  
hold down, obviously goes down  
if youre not holding either button and are still on the ladder, you stay on the ladder

sadly im still very wet behind the ears on GM and cant quite figure out how to do all that

---

<div class="post-metadata">

**Author:** ![Timmeh](https://forum.teamscu.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@Timmeh](https://forum.teamscu.com/u/Timmeh)\
**Post date:** [February 5, 2008, 11:20am UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/22 "2008-02-05T11:20:58Z")

</div>

`if (keyboard_check_pressed(vk_up))
{
 &nbsp; if position_meeting(x,y,obj_ladder)
 &nbsp; {
 &nbsp; &nbsp; &nbsp;climb = true
 &nbsp; &nbsp; &nbsp;gravity = 0
 &nbsp; &nbsp; &nbsp;if (keyboard_check_direct(vk_up))
 &nbsp; &nbsp; &nbsp;{
 &nbsp; &nbsp; &nbsp; &nbsp; vspeed = -4
 &nbsp; &nbsp; &nbsp;}
 &nbsp; &nbsp; &nbsp;if (keyboard_check_direct(vk_down))
 &nbsp; &nbsp; &nbsp;{
 &nbsp; &nbsp; &nbsp; &nbsp; vspeed = 4
 &nbsp; &nbsp; &nbsp;}
 &nbsp; }
 &nbsp; else
 &nbsp; {
 &nbsp; &nbsp; &nbsp;climb = false
 &nbsp; }
}
`  
There was an extra space in there. “position\_meeting (x,y,obj\_ladder)”  
If that wasn’t the problem, try making the code actually move the character, not just set vspeed. So change vspeed = -4 to y -= 4 and vspeed = 4 to y = 4.  
Also, the first if checks for up, and the third if checks for down. Isn’t that impossible?

EDIT: Problems I foresee with your code:

1. You will still be in climb mode forever as long as you don’t press up while not on the ladder.
2. vspeed will not change unless you change it elsewhere in the code.  
If I were you, I’d restructure the code like this.

`if position_meeting(x,y,obj_ladder)
{
 &nbsp; if (keyboard_check_direct(vk_up))
 &nbsp; {
 &nbsp; &nbsp; &nbsp;climb = true
 &nbsp; &nbsp; &nbsp;gravity = 0
 &nbsp; &nbsp; &nbsp;y -= 4
 &nbsp; }
 &nbsp; if (keyboard_check_direct(vk_down))
 &nbsp; {
 &nbsp; &nbsp; &nbsp;climb = true
 &nbsp; &nbsp; &nbsp;gravity = 0
 &nbsp; &nbsp; &nbsp;y += 4
 &nbsp; }
}
else
{
 &nbsp; gravity = <normal gravity>
 &nbsp; climb = false
}`  
EDIT2: My code is worse in the sense that the “else” is running constantly, though, which would interfere with other parts of the program. Not sure what the optimal way is.  
EDIT3: Oho. Here we go:

`if position_meeting(x,y,obj_ladder)
{
 &nbsp; if (keyboard_check_direct(vk_up))
 &nbsp; {
 &nbsp; &nbsp; &nbsp;climb = true
 &nbsp; &nbsp; &nbsp;gravity = 0
 &nbsp; &nbsp; &nbsp;y -= 4
 &nbsp; }
 &nbsp; if (keyboard_check_direct(vk_down))
 &nbsp; {
 &nbsp; &nbsp; &nbsp;climb = true
 &nbsp; &nbsp; &nbsp;gravity = 0
 &nbsp; &nbsp; &nbsp;y += 4
 &nbsp; }
}
else
{
 &nbsp; if (climb == true)
 &nbsp; {
 &nbsp; &nbsp; &nbsp;gravity = <normal gravity>
 &nbsp; &nbsp; &nbsp;climb = false
 &nbsp; }
}`  
That’s how I’d do it.

Also, sorry for the huge wall of code.

---

<div class="post-metadata">

**Author:** ![Candy\_Man\_Criminal](https://forum.teamscu.com/user_avatar/forum.teamscu.com/candy_man_criminal/32/673_2.png) [@Candy\_Man\_Criminal](https://forum.teamscu.com/u/Candy_Man_Criminal)\
**Post date:** [February 5, 2008, 3:38pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/23 "2008-02-05T15:38:04Z")

</div>

now he just sorta hops in the climbing position o.o  
and yet thats still way better then i got him to do xD

---

<div class="post-metadata">

**Author:** ![Timmeh](https://forum.teamscu.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@Timmeh](https://forum.teamscu.com/u/Timmeh)\
**Post date:** [February 5, 2008, 3:48pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/24 "2008-02-05T15:48:18Z")

</div>

Oh. You’re just setting gravity again elsewhere. Lol.

---

<div class="post-metadata">

**Author:** ![PY1](https://forum.teamscu.com/letter_avatar_proxy/v4/letter/p/ee59a6/32.png) [@PY1](https://forum.teamscu.com/u/PY1)\
**Post date:** [February 5, 2008, 4:39pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/25 "2008-02-05T16:39:15Z")

</div>

Would it be possible to tek a look at yer source?  
Tim’s code is airtight, basicly.

---

<div class="post-metadata">

**Author:** ![Candy\_Man\_Criminal](https://forum.teamscu.com/user_avatar/forum.teamscu.com/candy_man_criminal/32/673_2.png) [@Candy\_Man\_Criminal](https://forum.teamscu.com/u/Candy_Man_Criminal)\
**Post date:** [February 5, 2008, 5:37pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/26 "2008-02-05T17:37:13Z")

</div>

> [@Phazon Yoshi @ Feb 5 2008](#):
>
> Would it be possible to tek a look at yer source?  
> Tim’s code is airtight, basicly.

this is how horribly new i am at this  
im not even sure about what youre talking about ^^;

---

<div class="post-metadata">

**Author:** ![PY1](https://forum.teamscu.com/letter_avatar_proxy/v4/letter/p/ee59a6/32.png) [@PY1](https://forum.teamscu.com/u/PY1)\
**Post date:** [February 5, 2008, 5:48pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/27 "2008-02-05T17:48:34Z")

</div>

The .gmk file?

---

<div class="post-metadata">

**Author:** ![Candy\_Man\_Criminal](https://forum.teamscu.com/user_avatar/forum.teamscu.com/candy_man_criminal/32/673_2.png) [@Candy\_Man\_Criminal](https://forum.teamscu.com/u/Candy_Man_Criminal)\
**Post date:** [February 5, 2008, 5:54pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/28 "2008-02-05T17:54:10Z")

</div>

> [@Phazon Yoshi @ Feb 5 2008](#):
>
> The .gmk file?

mmkay  
gimmie a bit and i’ll get it to you  
…somehow

---

<div class="post-metadata">

**Author:** ![PY1](https://forum.teamscu.com/letter_avatar_proxy/v4/letter/p/ee59a6/32.png) [@PY1](https://forum.teamscu.com/u/PY1)\
**Post date:** [February 5, 2008, 7:06pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/29 "2008-02-05T19:06:27Z")

</div>

Should be fix’d, Tim was right, you were setting gravity every step.

---

<div class="post-metadata">

**Author:** ![Candy\_Man\_Criminal](https://forum.teamscu.com/user_avatar/forum.teamscu.com/candy_man_criminal/32/673_2.png) [@Candy\_Man\_Criminal](https://forum.teamscu.com/u/Candy_Man_Criminal)\
**Post date:** [February 5, 2008, 7:24pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/30 "2008-02-05T19:24:26Z")

</div>

much better ^^  
thanks much!

---

<div class="post-metadata">

**Author:** ![Timmeh](https://forum.teamscu.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@Timmeh](https://forum.teamscu.com/u/Timmeh)\
**Post date:** [February 5, 2008, 7:49pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/31 "2008-02-05T19:49:11Z")

</div>

Go me. \>\_\>

---

<div class="post-metadata">

**Author:** ![PY1](https://forum.teamscu.com/letter_avatar_proxy/v4/letter/p/ee59a6/32.png) [@PY1](https://forum.teamscu.com/u/PY1)\
**Post date:** [February 5, 2008, 9:36pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/32 "2008-02-05T21:36:06Z")

</div>

Also go me. \<\_\<

---

<div class="post-metadata">

**Author:** ![Timmeh](https://forum.teamscu.com/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@Timmeh](https://forum.teamscu.com/u/Timmeh)\
**Post date:** [February 5, 2008, 9:51pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/33 "2008-02-05T21:51:54Z")

</div>

Go team. 😃

---

<div class="post-metadata">

**Author:** ![Andreas](https://forum.teamscu.com/user_avatar/forum.teamscu.com/andreas/32/516_2.png) [@Andreas](https://forum.teamscu.com/u/Andreas)\
**Post date:** [February 28, 2008, 2:45pm UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/34 "2008-02-28T14:45:58Z")

</div>

I played Faxanadu a lot when I was younger, but I really don’t know why.  
The game had shitty graphics and terrible controls, but I could try to fix the sprites you posted.

---

<div class="post-metadata">

**Author:** ![Candy\_Man\_Criminal](https://forum.teamscu.com/user_avatar/forum.teamscu.com/candy_man_criminal/32/673_2.png) [@Candy\_Man\_Criminal](https://forum.teamscu.com/u/Candy_Man_Criminal)\
**Post date:** [March 13, 2008, 5:00am UTC](https://forum.teamscu.com/t/faxanadu-revival/1865/35 "2008-03-13T05:00:16Z")

</div>

holy crap!  
that took longer then expected  
(had some personal and family issuses)

soooo  
after a loooong “vacation”  
im almost back completely  
few minor things to hack out and i’ll be back on track

(i havent gotten shit done in waaay to long x.x)

BUTCH  
i know exactly how you feel  
the sword took too long to stick out and the control were just messed up  
graphics i dont really care about but they did suck

still it was one of the best games ever o.o  
i dont get it

and please feel free to fix em  
infact i encourage it ^^

[Previous page](https://forum.teamscu.com/t/faxanadu-revival/1865.md?page=1)
