This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum rules

Flip objects through script

Give us your input on how we may improve the ScriptAPI in the game in future versions.
Forum rules
By using the forum you agree to the following rules.
Locked
User avatar
JakSparro98
Superfighter
Superfighter
Posts: 530
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 27

Flip objects through script

Post by JakSparro98 » Fri Aug 18, 2017 6:16 pm

A simple command that allows to flip an IObject, this can be usefull for a whole group of objects (for instance a car to turn back) for inverting all their tiles rather than creating another version of the same object but manually flipped.

abstract void Flip ( FlipDirection direction )

enum FlipDirection:
Horizontally | 0, Horizontally
Vertically   | 1, Vertically
3 x

Locked