ForumsProgramming Forumcarrying over variables in AS2

3 3107
Annihalation
offline
Annihalation
479 posts
Nomad

How can I carry over a variable on (_root) frame A and use it on frame B?

I want the player to input a character name at one point, and have that name show up on the character page (a different frame). thanks in advance

  • 3 Replies
PixelSmash
offline
PixelSmash
566 posts
Nomad

Piece of cake in AS2... just store it in a _global var... like this: _global.charName = name;

_global can be accessed from anywhere anytime during your animation... it doesn't depend on frame or function

Annihalation
offline
Annihalation
479 posts
Nomad

woot teewai

Annihalation
offline
Annihalation
479 posts
Nomad

lol, now I cant get the text input to save it O.O

Showing 1-3 of 3