Help With Amy Hammer Error #320
-
|
Why am I getting a error
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
|
Because, the variable "top" does not exist in the parent. |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, I don't know how this ended up being what was committed since I'm positive I tested this before hand, but to fix this for now... # set to max speed based on direction
- parent.movement.x = parent.top*parent.direction
+ parent.movement.x = parent.active_physics.top_speed*parent.directionIn AmyHammerSwing.gd around line 29. (if it's not obvious I mean you should remove the line with - in front of it and replace it with the line with + in front of it... sorta a pseudo-diff) |
Beta Was this translation helpful? Give feedback.
-
|
If you've tried it and it works, sure. It's all going to be changed to fit with current conventions just as soon... as I get to it. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, theres a lot of those.
There isnt really a point to doing it this way most of the time, but fbz
pylons use them so..... i think its just there for the one person that
programmed fbz pylons lol
Use whatever you want, we removed most of those shorthand functions for cc
because player.gd is really long already for what its supposed to do.
…On Thu, Nov 27, 2025, 6:05 PM Marawan Essam Reda ***@***.***> wrote:
Honestly, I didn't try it, I just looked through the player script in the
Player Refactor branch and found this function chilling there lol
—
Reply to this email directly, view it on GitHub
<#320 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4JOMPI6MJV7OMH7GA3HDLD3657SRAVCNFSM6AAAAACNGXNERSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMJQGA3DCMY>
.
You are receiving this because you are subscribed to this thread.Message
ID: <Techokami/SonicWorldsNext/repo-discussions/320/comments/15100613@
github.com>
|
Beta Was this translation helpful? Give feedback.

Because, the variable "top" does not exist in the parent.
Are you using Techokami's player-refactor branch? If so, that branch is incomplete and still heavily unfinished, so that's probably why. This error does not occur in the main branch.