Kyatric's Recent Forum Activity

  • 1. A global variable means it's global to the whole project.

    A global variable set in event sheet 1 will be available in a later executed event sheet 2.

    2. If you load a layout, it will load with every default elements you've setted it for. Meaning if you have a "Double jump" sprite that stands in the layout, you might very well destroy it in the first execution of the layout. If you load again the layout, the sprite will be spawned again.

    You have to take care of such "disapearing" objects in the event "Start of layout" (with the help of a global variable for example).

  • 0plus1 if you find bugs or issues in C2, the good thing to do is to file a bug report.

    If some issue hasn't been detected, it can't be corrected.

  • You should also take a look at the function plugin in the plugin sections.

    That might help you "encapsulating" a certain set of events, and use it from the code in a single call.

  • Intrepid posted a full example here.

    This has been added to the how do I FAQ.

  • action - Sprite - Platform (browse the list, these actions have different icon) - Simulate control, and then in the dropdown select the correct control (either right, left or jump).

    There are examples of platformers in your install of c2, folder examples. (or from the start page "Browse all examples")

  • I strongly suggest you to use dropbox.

    See how it is easy for you to get this fixed and commented capx.

    Also, there is no need to zip images with the project, a .capx is already a ziped folder, containing all the images required. Simply share it away no need for further compressing.

    Also the "bugs" section of the forum is rather used for C2 bugs, not bugs in your coding. I moved your topic to a more "support in your code" area.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Zenox is right.

    You also have a list of examples listed here in the section "Platformer behavior".

    Ashley said also he was working on some tutorial, like the beginner's guide but aimed at platformers. Check out for when it is out.

    In the meantime and for "basic" templates platformer, the examples from the C2 install folder as well as those listed in the FAQ should really help.

    Be sure to let us know the result/response of/to your course <img src="smileys/smiley2.gif" border="0" align="middle">

  • Thanks for the example.

    Added to the How do I FAQ.

  • You could use the "mouseto" behavior (from the plugins forum) and set it to mouse.x, mouse.y.

    You can check also in the How do I FAQ there's a few other implementations proposed in the section "object moving".

  • Fully agreed with Mipey.

    Also a "true engine as jsimpact", on the debugger part will rely also on the browser's debugger.

    So if you want to debug, use the console in the browser, it is here for it.

  • With or without webgl, I can't seem to reproduce it in a new project.

    Maybe you could post your capx.

    Also does it "cut" this way in any browser ?

    Consider trying several browsers and indicating the results for each one.

  • If you could post your capx, it would be easier to spot on what went wrong.

    From the sound of it, I'd say select your layouts in the "Projects" tab and make sure that their "Event sheet" property links to the intended events sheet.

    This might be a first thing.

    Another thing is the order of the layouts.

    If you have some variables and code for these variable set in event sheet 2/layout 2/Menu in you case and that you start directly the program on layout game, the whole code about the variables won't act indeed, since the layout they are in never got initialised.

    Make sure that the correct layout is selected as "First layout" property of the project itself.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

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