Kyatric's Recent Forum Activity

  • And a third implementation, 'cause we can.

  • Demo Capx

  • Not for now. It was already discussed and Ash notified he'd modify it sometime.

    For now, got to stick with the "if" workaround.

  • Indeed. I hadn't noticed the event count there either at first.

    But since I know it's here, it's pretty useful.

  • The textbox IS multiline.

    You can use the system expression "NewLine" to go to the next line.

  • Example capx

  • All is said <img src="smileys/smiley4.gif" border="0" align="middle" />

    I agree and I guess this little feature should/could sneak its way into a future build.

  • I guess you can use the canvas plugin for drawing.

  • You already have those coordinates in the state bar at the bottom of screen.

  • Leaston: A wrapping solution was proposed a while ago. Maybe it's worth checking it out.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I guess to include Kongregate API to C2 you will have to make your own C2 plugin in javascript.

    Read and experiment with C2's SDK.

    There's no other way around this one for now, I don't think anyone leaned over this integration yet.

  • Extract from the manual article about instances:

    y default, all instances are destroyed when the layout ends (e.g. when going to the next layout). If Global is Yes, none of the instances of this object type will be destroyed when switching layouts.

    Consider this example

    The object Text is set to global.

    I have an instance of Text in layout 1.

    Layout 1 automaticly switches to layout 2 after 2 seconds.

    Result => the button instance of layout2 appears, the text instance of layout 1 stays on screen.

    Clicking the button allow to make a new instance of the Text object.

    Now if you turn global to no on the Text object, observe:

    On layout switching, the Text instance from layout 1 disappears (gets destroyed).

    Still you can create a new instance of Text on layout 2. The object Text itself is "global"/reachable from the whole project.

    The sprite in layout 2 is global.

    Clicking it leads to layout 3.

    The button2 in layout3 just takes back to layout 1.

    You can see with global set to yes, from now on, the Text instances and the sprite appear in every layouts.

    Global only apply to instances, not to the object itself. Every objects are "global" to the project by default.

    In mina's capx, I think the trouble comes from the layer.

    In the "startup of layout" of Event sheet 1 (event 64), you have to "move to layer 3" for text_lives, sprite2 and text_score.

    Make an experience, make sprite4 in layout1 invisible (it is the background, btw mina, you should rather use a tiledbackground object than a sprite there, you could then use a smaller texture (base png) that will repeat itself automaticly and make the project and then download of the game in the end smaller, so better).

    You can see, the instances of text_lives, etc... are on layer 0 (they stay in place when you move to the right).

    In fact, each time you execute the layout 1 again, the sprite4 of background gets drawed over the global instances that traveled through the different layouts, keeping their properties.

    zenox98: It makes sense that they don't get moved back automaticly to the layer3. In fact in the case of non global instances, they would be moved/spawned back. The instance is set for this specific layout.

    But since you're using global instances, that are non limited to a specific layout, it's your responsability to move/handle them.

    The layout sort of "ignores" them.

    I must admit I was confused with this too. Reading the manual and testing in C2 helped.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,405 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x10
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs