Jump to content

Photo

Error help on building symbol tables


  • Please log in to reply
24 replies to this topic

#16 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 23 October 2016 - 12:23 AM

Lejes

can you comment the code you gave me so I can understand and learn from it?



#17 Lejes

Lejes

    Seeker of Runes

  • Members
  • Location:Flying High Above Monsteropolis

Posted 23 October 2016 - 02:00 AM

I fixed a bug with slowed movement, and commented most blocks of it. If you're still confused on how something works, just ask. I still don't consider this done, really. There are some issues with diagonal movement that I need to think about how to fix.

Link Speed, Commented


#18 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 23 October 2016 - 02:17 PM

ok thankyou

 

Edit: Lejes

I Have been comparing it to the game boy speed of link

and it seems even at 0.1 hes a little too fast is there a way to put it on a timer so it can go to really slow speeds?


Edited by Shadowblitz16, 23 October 2016 - 02:31 PM.


#19 Lejes

Lejes

    Seeker of Runes

  • Members
  • Location:Flying High Above Monsteropolis

Posted 23 October 2016 - 03:22 PM

You could theoretically put it all the way down to 0.0005. I'm not sure Game Boy Link is that much slower, though.

#20 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 23 October 2016 - 07:15 PM

@Lejes sorry my bad

I'm saying it has a bug in it where you can't slow down link past 1.0


Edited by Shadowblitz16, 23 October 2016 - 07:15 PM.


#21 Lejes

Lejes

    Seeker of Runes

  • Members
  • Location:Flying High Above Monsteropolis

Posted 23 October 2016 - 07:25 PM

I'm not seeing it. Although I am seeing more issues with diagonal movement.

#22 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 23 October 2016 - 07:44 PM

have you tested it?

if you make it use a value like 0.005 it will be the same as 0.05 or 0.5



#23 Lejes

Lejes

    Seeker of Runes

  • Members
  • Location:Flying High Above Monsteropolis

Posted 23 October 2016 - 08:24 PM

I made it. So yes, I've tested it. I tested again just now, and a step speed of 0.0005 takes about 50 full seconds to see any movement, as expected.

#24 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 23 October 2016 - 08:40 PM

hmm weird I had to remove the waitframe() command at the end of my global active script

 

but now I see what bugs you were talking about

 

I'm going to list some bugs here I found

-Link twitches when he is moving diagonally when slower then 1.5

-Link has hard time opening chests when slower then 1.5

-Link can't stab the wall when slower then 1.5

-Link has hard time scrolling when slower then 1.5

-Link can move in any state when faster then 1.5


Edited by Shadowblitz16, 23 October 2016 - 09:19 PM.


#25 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 01 November 2016 - 09:55 AM

@Lejes

 

ok so I decided to go with a much simpler script, one that just delays Link's directional input.

however I can't seem to get ZC collisions to work with it, for example push blocks don't move when Link is next to them

I suspect it has something to do with internal collisions actually checking a step of 1.5 instead of X and Y

 

is there a way to fix something like this?

 

here is my code

int delay = 0;
 
void Link_Update()
{
if ( delay <= 0 ) { delay = 1; }
else 
{
delay -= 1;
Link->InputUp = false; Link->PressUp = false;
Link->InputDown = false; Link->PressDown = false;
Link->InputLeft = false; Link->PressLeft = false;
Link->InputRight = false; Link->PressRight = false;
}

it is much less simpler then the one I was working on before and the one you linked me.

I would use the one you linked but it has many bugs and I don't have the ability to fix them

 

Edit: ok so I can't get the exact speed with this script so nevermind

can you fix the one you gave me and upload it to the database?

I'm sure someone else could use it too.


Edited by Shadowblitz16, 01 November 2016 - 10:00 AM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users