dop2000's Forum Posts

  • To open the project with an older Construct version:

    Change the extension of your c3p file to zip, unzip it to a folder, open .c3proj file in Notepad and edit this string:

    "savedWithRelease": 16403

    For example, you can change it to 15200 and then try to open this project with different versions starting from release 152. Of course, this will only work if you are not using new features added in later releases.

    .

    You can also try to find what object is causing the type mismatch error and fix it manually in JSON files. Press F12 in the editor window and then try to open the project, you may see some additional information about the error in browser console log.

  • If you want to use the function like this for fading out the sprite, you either need to call this function multiple times (every tick), or use a loop inside the function, something like this:

    Repeat 100 times
    	Wait 0.016*loopindex
    	Sprite set opacity to (self.opacity-1)
    
  • Tom

    Something weird is going on with the forum today. I leave a comment and don't see it. I refresh the page and my comment shows up, but some other comments disappear. I refresh again, my comment disappears, but others appear...

    It's as if there are two web servers out of sync.

  • It should work both ways. Please post your event sheet of project file, you probably made some mistake.

  • Repeat someVariable times: Create badge at (46+loopindex*7, 320)

  • Yeah, save before exiting the layout:

    On clicked ExitButton
    	Local Storage set...
    	Wait for previous action to complete
    	Go to MainMenu layout
    
  • If your object_1, object_2, object_3 etc. are different objects, then what you are asking is impossible. You can't refer to object by its name in expressions.

    One workaround is to put all objects into a family, define an instance variable "type" on this family, set different type for each object. Then in your events you can pick family member by type and access its value.

    You can create a function "GetObjectValue" that takes type parameter, picks that object from the family and returns object value. Then you will be able to use this function in expressions.

  • CalBro This post is 4 years old. And that advice was wrong anyway, don't use "Wait 3 seconds", use Timer behavior.

    Player On collision with enemy
    Invincible = 0
    	Player subtract 1 from health
    	set Invincible = 1
    	Player Start Timer "invincibility_remove" for 3 seconds
    
    On Timer "invincibility_remove" 
    	Set Invincible = 0
    

    .

    Another common method is to use Flash behavior. When player is hurt, start flashing, this will indicate that the player is temporary invincible. Use inverted "Is flashing" condition to check if the player can be hurt (is not invincible).

  • How about now? (I posted a longer gif, previous one was too short)

  • Try this:

    Set s to variable1 & "?"
    
    Repeat Array.width times
    	Set s to s&"name"&loopindex&"="&URLEnconde(Array.At(loopindex,1))&"&"
    	
    
    AJAX send "" to URL s
    

    Note, that the AJAX Send is outside of the loop. The loop should create a string like this: "......?name0=XXX&name1=YYY&name2=ZZZ&" , with all names from the array.

    And then you send the entire string.

    In the google script you will need to loop through all parameters ("nameN"). See comments in this post:

    construct.net/en/forum/construct-2/how-do-i-18/send-data-google-sheet-138376

  • Is it working? Didn't work the first time I posted, maybe needed to add some text.. Used this tag:

    [giphy=coffee-gif-CkMyyly0PDmI8]
  • Mobile Enhance - the addon that implements the Enhance SDK for mobile SDK integrations into the Construct 3 Editor with c3runtime. A c3runtime port of the Enhance SDK.

    Wow, this is an awesome addition! Enhance team would probably have never updated their plugin for C3 runtime.

  • You can simply put a Text object next to the checkbox and set any color for it. No need for CSS.

    If you delete text from the checkbox, but stretch its size to cover the Text object, then you will still be able to click on the Text to toggle checkbox.

  • Yes, you should probably disable all controls or at least display a message "Saving, please wait" to the user.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So, is saving works fine now?

    You can find out how many objects you need to add for the file size to reach 1Mb, I think a lot. And probably nothing awful will happen, but the file may take a bit longer to save - there will be a delay before "Save as" dialog appears.