Jump to content

Photo

Reading from links current frame in his animation?


  • Please log in to reply
5 replies to this topic

#1 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 06 January 2017 - 04:59 PM

is this possible?

 

I am currently writing a script to draw link manually

but I don't know how to read his current frame of animation.

 

I want to know this so that I can properly make him animate when using items.

 

I will post my code later right now its not finished.



#2 Deedee

Deedee

    Bug Frog Dragon Girl

  • Moderators
  • Real Name:Deedee
  • Pronouns:She / Her, They / Them
  • Location:Canada

Posted 06 January 2017 - 05:31 PM

is this possible?

 

I am currently writing a script to draw link manually

but I don't know how to read his current frame of animation.

 

I want to know this so that I can properly make him animate when using items.

 

I will post my code later right now its not finished.

​Link->Tile. Link->Flip may also be helpful.



#3 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 06 January 2017 - 07:09 PM

thankyou



#4 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 06 January 2017 - 08:37 PM

ok so I have another problem link is not animating or changing animations

 

I have the following variables for each state of link

- the starting tile

- how many tiles are in one direction

- how many directions are in the animation

- how much space is in between each tile 

- and finally a array of previous states that do not reset his flashing and animation

 

note setting the tile, number of tiles, number of directions, or space in between tiles to -1 makes them not update when the link's state changes

 

then I have a bunch of checks that check what state link is in a applies the above

 

ok I think I fixed some stuff

here is some updated code I commented out stuff since Its still very buggy

Spoiler

Edited by Shadowblitz16, 07 January 2017 - 02:29 PM.


#5 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 07 January 2017 - 02:40 AM

Link->Tile... Reading this will tell you his tile, in the previous frame. The same applies to Link->Flip.

 

I do not know what will be retained, in a core ZC release, but again here, [2.future] has various functions to read, and set Link's tiles, and other properties. As you wanted to test the betas, that may be a good place for you to start.



#6 Shadowblitz16

Shadowblitz16

    Illustrious

  • Members

Posted 07 January 2017 - 02:31 PM

@ZoriaRPG right now I think the tile calculation of wrong and I'm not good at math

also for some reason link animates on is none action and not on others

which it should be the opposite since he only has one frame on none and multiple on others




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users