Event System & other Questions

Discussion and feedback on Construct 2

Post » Sun Aug 28, 2011 3:42 pm

Hey

r52 Rocks! Just made my first Platform Shooter, and during the buildup i got some questions...maybe you can help me answer them now.

1. When i change the name of an object, maybe a sprite, it auto changes it's name in the event and action system, but only if directly affected.
But i access a value of a class in a phrase, it doesn't, but the formula keeps working anyway. Can you tell me how that works? Will there be a fix so that the accessed objects in phrases change their name too?

2. If i want to send a capx file with features of standard edition to a user with demo of c2 only, can he open, export and safe the project without restrictions? Didn't test it, but at flstudio the solution is just, that you cannot safe projects with the demo at all, but have full functionality of the daw. Guess this would be nice solution for c2 too.

3. How can i access the heigth/width of a layer in the event system?

4. Is there a way to rotate a textfield? If not, will that be implemented soon?

5. I need too access multiple Sprites with one object name, so that i dont have to write every event for new with the same methodes. Is there a way to do so?

Thanks alot

xeed
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Sun Aug 28, 2011 6:09 pm

[QUOTE=xeed]1. When i change the name of an object, maybe a sprite, it auto changes it's name in the event and action system, but only if directly affected.
But i access a value of a class in a phrase, it doesn't, but the formula keeps working anyway.[/quote]
When you rename an object, it should update the name everywhere, even in expressions (I think you use the term "phrases" to mean "expressions"). If it doesn't, it's a bug! If you found a place where the name is not updated, please report a bug, it needs to be fixed.

[quote]2. If i want to send a capx file with features of standard edition to a user with demo of c2 only, can he open, export and safe the project without restrictions?[/quote]
If the project is within the free edition's limits (100 events, 4 layers per layout), it can be opened, edited and exported in the free edition as well. If your project exceeds the free edition limits, then the free edition can still open it and preview it, but not add or edit any events or export it. Basically, if you have under 100 events and only 4 layers on each layout, it should work 100% in the free edition as well.

[quote]3. How can i access the heigth/width of a layer in the event system?[/quote]
All layers have the same size as the layout.

[quote]4. Is there a way to rotate a textfield? If not, will that be implemented soon?[/quote]
Not yet - is it an essential feature? I didn't think many people needed to rotate text.

[quote]5. I need too access multiple Sprites with one object name, so that i dont have to write every event for new with the same methodes. Is there a way to do so?[/QUOTE]
It sounds like you need the Families system from Classic. It allows you to refer to multiple sprites via one object (e.g. "Monster", "Ghost" and "Troll" all as just "Enemies"). It's on the todo list, hopefully it won't be too long. For now I'm afraid you'll have to get by with copy-paste.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sun Aug 28, 2011 8:44 pm

1. i do open another thread for this, right. it really doesnt change the names in expressions, but everywhere else in the event system and hud.

2. good info, and fine solution.

3. so how to access the layout.width/height in the event system?

4. i guess it would be nice to have, since every better graphic tool does it. of course even it doesn't make too much work to implement this into c2.

5. yes, families. i think this is an essential feature in oo coding, and i would give this a top position in the todo list.xeed2011-08-28 20:45:21
B
15
S
3
G
5
Posts: 396
Reputation: 4,977


Return to Construct 2 General

Who is online

Users browsing this forum: chadorireborn and 4 guests