Jump to content

xinfinite

Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Thailand

Recent Profile Visitors

330 profile views

xinfinite's Achievements

Poring

Poring (1/15)

  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Hi, I have little to no experience in coding but I try to learn through trial and error. I'm trying to write a simple script in Act Editor that adds Sprite Index number 116 to every frame of every action of an existing sprite. This is what I have so far, in which, it changed every layer to sprite number 116 with the offsets. foreach (var action in act) { foreach (var frame in action) { foreach (var layer in frame) { layer.SpriteIndex = 116; layer.OffsetX = 1; layer.OffsetY = -120; } } } I tried looking up the 'Help' section of Act Editor, but there isn't a section about Insert/Add new layers. Can anyone assist me with this? Thanks,
×
×
  • Create New...