arrall's Forum Posts

  • ^The link just above had some great code, taking into account C2 physics.

    I put something together in a hurry in an attempt to help. It may just confuse you more and be needlessly complicated, but, drag the red dot, then release:

    http://arrall.com/c2/motionmarkers

    Something like that?

    I looked at your capx. Nice what you've done with the bow, string, and arrow. The arrow travels rather fast with minimal drawing of the bow.

  • I suppose I would love to have that as an option. It could also highlight every line that would be changed on the current sheet, before I hit the Yes button. Honestly, I'm not sure if it does. I only ran into the problem last night cleaning up an example for someone that had lots of unneeded objects. It was easy to get the line I needed back and then edit that variable out of the line of code before re-deleting the object.

    It shouldn't be much extra work on my part to simply do a search on the object before deleting. I assume it would be a lot of effort to change the editor, with little added functionality.

    Getting back to the original question:

    It does not notify you of unused events (events whose condition never evaluates to true?)

    Does it let you know when your Function is never used? That seems reasonable in a traditional language.

    I should have turned to this forum long ago. Great community, lots to learn from.

  • Yep. I don't know how else the editor would handle it really. I suppose I just wish it would warn me individually when one of my lines of code referencing multiple objects' parameters gets deleted because of an object deletion, rather than silently deleting the entire line of code.

    Other languages/IDEs do detect unused variables and functions, and warn you. I am not expecting that in C2 because the structure of your project is not just lines of code. I do look forward to improved autocomplete though!

  • This is the first I've seen this explained. Extremely helpful!

    Here is someone on YouTube explaining some of this with visuals

  • From what I see, if the image is in your project, it gets exported, regardless if it is used on any layouts. C2 will even warn you when you delete the last instance of an image/sprite from a layout that it is still included in the project.

    Also, when you delete something out of your object types, C2 deletes it entirely. This can cause lines of code to disappear in my experience.

  • 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 this question before. The sentiment I see repeated often is "Do not get into making games from a drive to, or expectation of, making lots of money. Go for it if it is something you love doing."

    Most of what I make comes from ads in a screensaver/wallpaper app I made early on for iOS. I do not make much. It is not amazing, but I think it gets used because there are fewer of that type of app available. Likewise, my most popular Android app is a live wallpaper (not in C2) that is Christian themed. It gets noticed because it is decent, but also because there are fewer of that type of app on the market. Putting something out there that deserves good reviews, and actually getting those reviews helps a ton.

    As mentioned above, you get more out if you put more time into it. It helps if you are artistic or have access to someone who is. It helps if you know how to market/advertise and network.

    Learning to write code, learning to work with others, and being a part of a larger community focused on app development have the potential to open doors to things beyond apps in Construct 2.

  • Example:

    http://arrall.com/c2/passvarv2/

    Here is an example with no 3rd party plugins. (I hope) You pick a scale and an opacity offset and it sends it to the second app. I assume you could make the textboxes in the second app invisible/offscreen. It is a combo of php, javascript, and construct 2. But very little code to pull it off.

    I'm still not sure how to load a graphic from a base64 in Construct 2. But sending the string between apps should not be a problem.

    You don't always need 2 apps either. In the brainstorming app I was showing, it would be possible to have it navigate back to the same app with a different node-id passed based on whatever was pressed in the app.

    Also posted this to Ragevortex 's issue.

  • Example:

    http://arrall.com/c2/passvarv2/

    Here is an example with no 3rd party plugins. (I hope) You pick a scale and an opacity offset and it sends it to the second app. I assume you could make the textboxes in the second app invisible/offscreen. It is a combo of php, javascript, and construct 2. But very little code to pull it off.

    I'm still not sure how to load a graphic from a base64 in Construct 2. But sending the string between apps should not be a problem.

    You don't always need 2 apps either. In the brainstorming app I was showing, it would be possible to have it navigate back to the same app with a different node-id passed based on whatever was pressed in the app.

  • I'm trying to put together a better example, without all the extra code that made up that app. How are you getting the base64 string? In the example I'm making I am using DragNDrop zone's base64ImageString, but that is part of a plugin itself. Is there some simple way to get the base64 of a Sprite object?

    This example passes 3 variables from one app to another app. It seems to pass the base64string, along with the other parameters. I am just not sure how to convert the string back into a usable image again via C2.

    http://arrall.com/c2passvar/

  • I noticed that issue with the single shape, but not until having moved on to other projects.

    -I've done beyond rainbow cycles in other versions. It does make for some great visuals.

    -More built-in, intricate designs is a great idea. Were you able to use your own images? (usually small ones containing red work best)

    If anyone wants to play around with it the source for this project is at http://sourceforge.net/projects/colormorphing/

    (it may not be the most recent version. It is zipped under Files. 1.6 I believe. Sorry for the disaster that is my coding style.)

    I am never sure which open source license to go with. MIT sure seems to be the most straight forward. I do not even know if sf.net and Construct 2 are compatible licensing wise...

    I'm fairly new at C2, and even more so to this forum. It is GREAT to get feedback. Would it be better to just upload the .capx as an attachment, if anyone is interested?

  • **I'm going to leave this post as is, but make a new post for endrage under works in progress since I keep editing it.

    I used Construct 2 to remake an iOS wallpaper/screensaver app of mine. The Objective-C version was thousands of lines of code. The Construct 2 version is less than 120 events! Colorful shapes swirl around in formations. I have been told it pairs nicely with music. Alternatively, you can save an image to use as a wallpaper (or for whatever purpose.) Construct 2 also enabled me to allow people to use their own small images in the designs.

    http://endrage.com

    http://endrage.com/extreme/

    The app is free:

    On the Chrome Web Store:

    https://chrome.google.com/webstore/detail/colormorphingcom-wallpape/pimcfpgdppdcomdkhondebhlbgclnien?utm_source=chrome-ntp-icon

    Or directly at http://www.colormorphing.com

    *Edit: The "endrage" C2 version is now 209 events, but it does both the whirl and spiral now. There are some bugs...

    ** with clouds

  • (post edited to remove references to the old code)

    Some examples people have made:

  • http://part2art.com

    Part2Art: a Construct 2 web site for piecing together sprites from parts.

    The old site has been taken down, so I am updating this to reflect the changes being made. The new version is still being rewritten from scratch. Expect bugs. Use throw-away username and password.

    -Easily upload parts with drag and drop. (with permissions)

    -Ongoing redesign for desktop

    -Fewer enormous ugly buttons

    -Mouse-over instructions

    -Projects saved as both a sprite and a thumbnail

    -Use any other project's sprite you've created as a part within the current project

  • I wanted to pass a variable into C2 via the URL to load the page (like youtube.com/?v=###.) I used the method explained here to call doIt(); in my loading screen and extended it using a tiny amount of php. Thankfully, C2 did not complain when I changed index.html and game.html into php files.

    This (should be) a working example:

    http://arrall.com/c/?i=13

    In the example, the code checks to see if a variable was passed. If so, it skips the login screen, silently logs in as the guest/guest user, and then loads the correct node.

    I realize this post is old, but if I had found this post while reading the FAQ post it would have saved me some time.

  • It is not a large app. Here is the source. When I push the Distance slider to the max and continually click the camera icon to save a picture, the page crashes close to when the swirl reaches the edges of the screen. It handles PNGs close to 1.5MB. It has no issue with 90% JPGs.

    I assume it is something to do with file size, but it could be anything. I have been testing in Chrome.