[Behavior] Pin+

Post your completed addons to share with the community

Post » Sun Apr 23, 2017 2:03 pm

@Prominent Tried this and it is great. Thank you for making it

If I could wish for two extra features it would be these:

Mirror --> mirror pinned object based on the object it is pinned to

Relative size --> Scale pinned object based on the pinned object change in scale.
B
55
S
24
G
13
Posts: 765
Reputation: 12,571

Post » Sun Apr 23, 2017 4:38 pm

Anonnymitet wrote:@Prominent Tried this and it is great. Thank you for making it

If I could wish for two extra features it would be these:

Mirror --> mirror pinned object based on the object it is pinned to

Relative size --> Scale pinned object based on the pinned object change in scale.


Good suggestions. I suppose a flipped option would be useful as well as mirrored.
I'll work on adding those.
For the relative size, are you imagining it would work something like this:
if parent object increases scale by 5% of parent size, increase child object by 5% of child size ?
I could probably add that as options under the Width/Height properties.
I could probably add another option for adjusting by pixels too- like if parent scales by 5px, then child also scales by 5px.
I'll work on all these.
B
45
S
21
G
65
Posts: 1,115
Reputation: 38,221

Post » Sun Apr 23, 2017 8:40 pm

Okay, uploaded new versions R5:
added more options to the Width/Height properties. (relative width/height, scale x/y, scale relative x/y)
added Mirror and Flip properties.
Also corresponding expressions/actions to get/set those.

@Anonnymitet
B
45
S
21
G
65
Posts: 1,115
Reputation: 38,221

Post » Sun Apr 23, 2017 10:32 pm

@Prominent - Great work!
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Sun Apr 23, 2017 10:37 pm

@Prominent - im getting a dupicate ACE table error when installing R5

---------------------------
Construct 2 Check failure
---------------------------
Check failure! This is probably a bug:

ACE table: Action ID duplicated in ACE table

Condition: act_ids.find(id) == act_ids.end()
File: c:\c2\source\exporters\html5\..\..\common\ERAHelpers.h
Line: 238
Function: void __cdecl era::ACETable::AddAction(int,int,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,void (__cdecl *)(const class era::StaticResult **,int,class era::StaticEvaluation *))
Build: release 243 (64-bit) checked
Component: HTML5 exporter
(Last Win32 error: 0)

You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.
---------------------------
Abort Retry Ignore
---------------------------
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Sun Apr 23, 2017 10:44 pm

@justifun
thanks, I've uploaded a fixed version r5b.
Looks like I had one of the actions using the same number as another action. Should be fixed now!
B
45
S
21
G
65
Posts: 1,115
Reputation: 38,221

Post » Sun Apr 23, 2017 10:48 pm

@Prominent - 5b confirmed working!
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Sun Apr 23, 2017 10:51 pm

@Prominent - I wonder if there could be a sub option of the flipped/mirrored feature so that if its also pinned in position, that when you mirror it, it would flip over the other side of the object its pinned to.
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Sun Apr 23, 2017 10:59 pm

@justifun , yeah that would make sense to have that option. I'll work on adding that!
B
45
S
21
G
65
Posts: 1,115
Reputation: 38,221

Post » Mon Apr 24, 2017 5:32 am

@Prominent Wow that was fast. Thank you :)
B
55
S
24
G
13
Posts: 765
Reputation: 12,571

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests