lennaert's Forum Posts

  • touch

    object.counter

    Event

    Is touching object

    subevent

    every 1 second

    action

    add 1 to object.counter

    subevent to every second

    object.counter = 3

    action

    unlock feature

    subevent to is touching object

    is touching object (inverted)

    action

    object.counter = 0

  • Funny thing .... your description actually pretty much describes what you need

    import all 3 tunes ....

    In each layouts event sheets

    Event

    on start of layout,

    sub event audio tag "level1" not playing (inverted)

    Action

    audio play tune 1 tag "level1"

    Event

    Level finished (some event determining that the level is finished)

    sub event

    audio tag "level1" is playing

    action

    audio stop tag "level1"

  • GenkiGenga

    Yeah, a clear search option and a 'Focus on event' option sorta thing. Opening all top level events involving the selected event, putting the rest back to its previous state with the event sheet scrolled to the selected event.

    That would help moving through large event sheets quickly while debugging.

    And work in progress, hehe, yeah ... no idea lol

  • As zenox98 says, a capx would do wonders.

    Though, what your describing sounds like over the top action for your video card .... are you applying multiple effects in 1 go on the same object or layer ?

  • Do you have events where the sine is getting deactivated ?

    Perhaps disable those to see if the sine still works when returning to the main menu.

    You could use an event to see if the sine is active, and if inactive, reactivate it.

    event

    object sine active (inverted)

    action

    object set sine active

  • During a search, the found results are expanded when they are folded (closed) .

    Clearing the search puts the event sheet back in the previous state ... which I kind of like.

    Otherwise, after each search I would have to close all the opened bits again.

    I just have gotten used to looking at the event numbers and find my way there after a search.

    I would not mind having an option to jump to a certain event number, making it auto expand if closed.

  • Likely by an Ajax post action ....

    c2 vars: PlayerID, PlayerScore, TimePlayed,Code

    Server post vars: id,playerscore,playertime,checkcode

    In your data you will have something like "id="&PlayerID&"&playerscore="&PlayerScore&"&playertime="&TimePlayed&"&checkcode="&Code

    You can encode bits as you like and need.

    As for the server side, you will have to catch the post and store it somewhere.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have seen quite a few topics relating to multiple images uploading, so I thought ... lemme try <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    Gave it a few hours and I succeeded <img src="{SMILIES_PATH}/icon_e_geek.gif" alt=":geek:" title="Geek">

    Just 9 events and a tiny php file.

    Here is a demo

    The demo is not configured to send stuff to my server <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">, but works for selecting images.

    This uses R0j0hounds paster plugin <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> (great stuff man)

    It uses a php capable webserver as a back-end to store the images on a server.

    I used an array to bypass the need for those nasty frames if you want to add unlimited images <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">

    Config / Settings

    • On your webserver, make a folder called "imageuploader", in here you place the from zip extracted php file from this dropbox link.
    • In the Capx file in this dropbox link, replace the global var content with your web address.

    ie

    "Your Web Without HTTP and no Folder Name" needs to become "yourwebsite.com"

    If you created the imageuploader folder in a sub directory, say 'test', the address becomes yourwebsite.com/test

    Usage

    Select one or multiple images for upload, and when done, click OK. This will start sending the files to your server. (mere second)There are little scaled thumbs generated, you can click them to show the bigger image <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    The PHP file has a bit of extra, it can also read the images from the folder automatically.

    So, if your entered web adres mysite.com c2 global var, you can use a browser to open http://mysite.com/imageuploader/image.php and it will display your images (after you uploaded them and did a reload of course)

    this is just a first version .... I will update it perhaps ... perhaps not ...

    Feel free to steal it and get your freak on <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

  • Its likely an easy addition to the existing code, you could request for it perhaps.

    Perhaps it has to do with that a lot of web developers use the text as value.

  • Build a bigger game ?

  • I think C2 just uses the index and not a value for the list items.

    Looks like best you can do is get the index number of a selected text.

    The work around would be to have the values associated with the list items stored and referenced to from somewhere else. (local vars, globals, instance vars)

    You could even use the instance vars from the list itself.

  • Did some updates to your project

    Remove unneeded loops, corrected some origin points, set polygons for the ball, removed unneeded controls, moved events to correct level and tweaked some minor stuff ...

    Hmm, uploading seems broken, dropboxing it ....

    https://dl.dropboxusercontent.com/u/7134196/slime.capx

  • In the group peer, on the creation event for peer, simply add: bullet disabled, just as you do with the host .. (only the host reactivates it at the end of the event, the peer should remain disabled)

    You could, just set the bullet behavior disabled by default, and only activate it for the host (in the host group, which is already there)

  • Yes, then I refer to my previous post

    the sprite editor in construct 2 is perfectly able to set up animations.