DUTOIT's Recent Forum Activity

  • You say you got timer to work. I presume you storing the seconds in a variable.

    So when you die

    Save your time

    Set variable to 0 again.

    restart game

    You can also add a condition called pause....

    Variable "pauseTimer" = 0

    so your timer counts when condition "pauseTimer" = 0

    When you character dies. Set pauseTimer = 1

    That'll work too

  • I thought the problem with functions in this case is they don't continually run. so where i want the layers to fade into one another, a function cant do that (am i wrong) because it just 'starts' to set the opacity of the layer, then stops after the first tick.

    Hoping for some genius wisdom to cause a paradigm shift in my thinking tho. Ive tried functions and just couldnt get it working as i need here.

    Wow, see you got some great stuff from the others

    Yes, functions can continually run. As long as you give it a reason to run.

    Call it everytick works or you can give it a reason to run

    Just as example

    run function = 1

    if run fuction = 1

    and x<100

    do this or that

    else

    run function = 0 x =99

    or whatever floats your boat.

    Remember every tick is reading your eventsheets from top to bottom and if a condition isn't met the function/code will run until that condition is met.

  • Use functions. With return value. That way you only code once and can call/use that function(code) all over the place.

  • DatapawWolf - if you miss it, like I always do, due to timezones. They are pretty good at having the videos/course materials up a day or 2 after.

    Maxum, the last course was very good... it was beginner, but had some nuggets in it. This is going to be pure gold

    lennaert, as always, great fedback.

  • Microsoft is hosting another Construct2 Teaching Session. This time it is advanced game development which includes multiplayer scenarios.

    Register for free here

    [quote:3kutuzim]Find out how to include privacy and support settings, and even add a leaderboard. Work with multiplayer scenarios, advertising, in-app purchases, and much more

    Looks like fun.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • DUTOIT Would you have an example of use?

    Absolutely,

    Open C2.

    CLICK NEW

    Search Multiplayer.

    You will get 3 examples

    Chat room.

    Real Time game (ghost shooter)

    Pong

    Open pong and export project to android using this tutorial

    Sidenote: you will have to change the mouse to touch to make it work on mobile.

  • but he multiplayer plugin of construct2 works on android or not?

    Yes, it works perfectly on android.

    But not on samsung phones (s3,s4,s5) Samsung broke something, which they say they will fix (no timeline)

  • I've taken time out in helping in the forums for similar reasons.

    Users feel it is their right, that they are entitled to our time, our resources. They want a capx for this or that, and when it isn't exactly like they want it - then they feel it is their entitlement that we have to change it because the capx is broken.

    So I took a little holiday away for the forums

  • Yes it does.

    I would create a your array (just a few) in construct then download to json. Then use what I did and load it, then you can add all your data to that json file using the correct format.

    I attached a json file to the tut - you can look at what it should look like.

    Something like this

    {
    "c2array":true,
    "size":[x,y,z],
    "data":[[
    
    ["00"],
    ["1"],
    ["11"]
    ],[
    ["01"],
    ["2"],
    ["22"]
    ],[
    ["02"],
    ["3"],
    ["33"]
    
    ]]
    }[/code:a8hqfvt6]
  • You are missing...

    {

    "c2array":true,
    "size":[13,6,1],
    "data":[[[/code:21u9uywp]
    
    I added a small tut months ago... it should steer you in the right direction.
    [url=https://www.scirra.com/tutorials/978/example-load-data-from-json-to-array-and-populate-game-card]load data from json to array and populate game card[/url]
    
    If you want organized, and are dealing with huge amount of data... this is a gem
    [url=https://www.scirra.com/store/game-making-tools/c2-data-editor-124]c2 data editor[/url]
  • What Kyatric said...

  • Love it. Brilliant use of multiplayer. Now i see where you were going with it

    I like this very much. Good Job.

DUTOIT's avatar

DUTOIT

Member since 17 Jul, 2013

None one is following DUTOIT yet!

Trophy Case

  • 11-Year Club
  • x5
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

14/44
How to earn trophies