Author Topic: Scripts  (Read 5066 times)

  • Hero Member
  • *****
  • Posts: 509
    • View Profile
Re: Scripts
« on: January 21, 2020, 03:20:10 pm »
Okay so I’ve been thinking about making a script that controls the player genus. I was planning on drawing one full genus (min) to add to every scene for next release. The only way I could think to do it is to add frames to the player body parts with different skins on each frame similar to the p en is. The only issue for me is controlling them to sync to the player_genus value from one script for easy implementation.

Since the frames could be named to match the genus,
Could we write a script that gets the player_genus value but instead of a bunch of if statements,

gotoandstop(player_genus)

Example:

genus = player_genus;

P e n I s.Gotoandstop(genus);
leg.Gotoandstop(genus);

Etc

would flash try to gotoandstop(“player_genus”)
And throw an error since there wouldn’t be a frame named player_genus or would it read it as Gotoandstop(“whatever the genus is”)?

I hope I haven’t confused you.