Kyatric's Recent Forum Activity

  • Add a condition "Trigger once while true" to your "mouse over" event.

  • As you only have 4 layouts the formula should be "round(random(3)+1)".

    I've tested the setup as you have, it works.

    I made 4 blank layouts, just putting a text object in them, and setting its text to the layout's name.

    When actualising/reloading the preview, I obtained a different layout on start of the app.

    The code we are talking about should be sitting in the first layout that's executed.

    It should work.

  • The "randomLayer = 3" and "randomLayer = 4" should be subevents from "on start of layout", not subevents of "randomLayer = 2".

    (all the tests on the same level, as subevents of "On start of layout")

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • By "naming" (in quotes) I meant type their name directly as expression in the action window. (impossible in C2 atm, you can't right click the dropdown to change it to a text input)

    And yes, I meant layout (I'm not mixing the notions, just went to fast in writing it :P)

    Thanks for the noticing, I edited my previous post.

  • Indeed, you can't directly type a layout name, you have to choose it from the dropdown.

    Then do a little workaround.

    Randomize a number and test it.

    Global variable rd as number (= 0 default)
    System->Start of layout - Action System-Global & local Variable - Set value
    Variable: rd - Value: round(random(your_number_of_layouts)+1) (round() will give an integer) (+1 to prevent obtaining 0 as result of the random())
    ..SubEvent System-Compare Variable
    ..Variable: rd - = Equal to - Value:1
    ...Action: System - Go to Layout, pick your layout 1
    
    ..SubEvent System-Compare Variable
    ..Variable: rd - = Equal to - Value:2
    ...Action: System - Go to Layout, pick your layout 2
    
    etc...
  • There's a .capx in the folder of socket-io and socket-websocket. Check it out ;)

  • I'd suggest to you to first read The beginner's guide to Construct2 which will give you some basics as of C2's use in general.

    The touch movement isn't covered in this tutorial, but plugins all work the same way (more or less).

    Once you added it to your project, you can check its actions, conditions and expressions in the various windows of C2. (Inline help)

    There's nothing written specificly for the touch movement as of now, so you'll have to figure most of it thanks to inline help.

  • Gimp is pretty scary indeed.

    And as any software, once you dived into it and got used to working with it, it is a blast. It takes time (but I remark a certain pattern that games I play and software I use have generaly large learning curve (there's much to learn, and every day brings it's pack of novelties or new way of arriving to "make things")

    As long as you are at ease with your soft, whatever it is, and get to make art that you are satisfied with, then you have the correct tool for you.

    I've tried paint.net for a few hours, and finaly got back to gimp (matter of habits and workflow), but I'd recommand it for beginners and non-geeky people.

    It is more user-friendly (and loaded of "useless"/precise features like gimp or PS) and yet can allow to render nice art. So I guess it is a nice tool to start with.

    And nothing provides you from "upgrading" to one of the other two mastodons once you feel the need for it.

  • I've managed in finaly downloading the plugins.

    I only have firefox 5.0 on my computer, and so the plugins won't work.

    But I took a look into the code.

    here is no way to tell if the plugin received more than one message during one tick. Storing them in an array is pointless, since you can process them punctually as they arrive. This is a kind of things that needs to be done internally.

    Whenever there's data incoming, "on data received" will be shot.

    Internaly to the plugin, the processing will be the same, and still revolve on a trigger.

    This is the way the API is designed.

    This mean that each tick, the socket listen to see if it receives any message.

    .. If true trigger "On data received"

    Collecting to an array in C2 or within the plugin is equivalent.

    It will be better/more user-friendly once embedded in the plugin, but my "hack" should work at equal as an embedded version for now. (there only gonna be one set of data received per tick when there is data to be received)

    Anyway the support of websocket from a browser to another is random. When there will be a common support (understand firefox6 for me), i'll worry about stacking received datas. ^^

  • This is the purpose of the array stuff as there isn't a receiving stack (or pool) within the websocket plugin.

    Any message received in the websocket is directly transfered to the array and later processed by the parsing process instead of being processed on reception with the risks of string change during processing.

    Nevertheless adding a reception stack to the websocket plugin itself is indeed a good idea and hopefully will be considered by Zack0.

  • "Set the cell size to <i>{0}X{0}px</i>"

    {0} is the cell side size (which gives the height and width of the cell).

    And I'd really rather avoid to ask again for the same value to the user as a {1}.

    Looks like there is no workaround this one though other than changing the description and reversing it to a "Set the cell side size to {0}" which is maybe not as visual/immediate compared to the "vXv" format.

  • Everything was working fine, untill i realised that Aces are 1 or 11 !!!

    Hehehe, you might have gone for a red dog rather than a blackjack. ;)

    Rules seem easier to implement to me, and the game is still fun.

    Nice graphics/render.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,403 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