How do I fix the On create Object works without WaitXs

Get help using Construct 2

Post » Mon Aug 29, 2016 4:03 pm

Why not just create the object and call the function to set all the other values. Two lines of code, per button.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Mon Aug 29, 2016 4:22 pm

@blackhornet And each function called by the button will have all the properties plus all events and their repetitive events for all buttons.

I want separate the unique properties for each button and one function with all the events that have in common all the buttons will be pressed for creating sprites.

I don't know if i explained well, or i not understand you well XD.

----------

On button Circle:
Set Unique Properties for the circle

On button Square
Set Unique Properties for the square

Lots of events shared by the same actions:
Actions : On created, On Drag Start, On Touch,etc....
Evens that runs after this conditions: Select, set textboxes, set sliders,etc...

So if i want to add a new sprite type i create a button with the unique properties. And if i want to improve the things you can do for the sprites i add an event on "Lots of events shared by the same actions:".

This is my actual design, what is the way you saying?
B
23
S
10
G
3
Posts: 545
Reputation: 4,442

Post » Mon Aug 29, 2016 4:37 pm

I think we are saying the same thing.
http://www.blackhornettechnologies.com/ ... _BHT2.capx
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Mon Aug 29, 2016 5:10 pm

blackhornet wrote:I think we are saying the same thing.
http://www.blackhornettechnologies.com/ ... _BHT2.capx


@blackhornet Yes is the same way. Adding the name or Zorder is only necessary when the object is created, and can be different in multiple ways i still don't know so is integrated in the button object of each type instead in the big events thing at the moment.

So yes, this is all, thanks for your help and the time to reply, very appreciated! ;)
B
23
S
10
G
3
Posts: 545
Reputation: 4,442

Previous

Return to How do I....?

Who is online

Users browsing this forum: lukewasthefish and 14 guests