Aphrodite's Recent Forum Activity

  • Just a little topic where I ask "what is your favorite feature in C2"

    I think it was a competition two years ago, but since then, C2 has changed a lot, So I ask ^^

    And also, what would you like to see one day in C2?

    As for myself:

    -Functions is my favorite feature, it makes the code soooo easier to read, and to edit, and also to write, I feel like using a cheat code as it become so easy with functions, and when they can't pick object by default, at the end you just have to pass an UID into a parameter and to pick instance with, and that does the trick, and functions aren't at all a problem performance wise *-*

    -My second favorite thing is the HTML5 exporter, it is great, just great, it makes it possible to have great games inside a browser, without too much downloading time (due to all optimisations that are done upon export), I dislike the fact teh offline.appcache works like that though... but that is another story

    As for the thing I'd love to see inside C2:

    -Ways to import from other projects easily.

    And you, what is your opinion?

  • the clamp system expression could help you:

    Clamp(A, Min, Max) : return A if A is between Min and Max, Min is A is inferior to Min, Max if A is superior to Max

    However, angles are cyclic, so I don't know how the engine would react in that case

  • I think only solid can move a platform sprite, however, you could still move it around with the "Move at angle" action:

    Angle : the angle in degrees

    Distance : Speed*dt ; where speed is the speed in pixels by seconds

    or if you want to move it with X and Y speeds:

    Angle : Angle(0, 0, Speed_X, Speed_Y)

    Distance : sqrt(Speed_X*Speed_X+Speed_Y*Speed_Y)*dt ; where Speed_X and Speed_Y are the speeds in pixels by seconds

  • You can use the system action "Set fullscreen scaling" to high quality or low quality, note that the low quality setting will make the game not perform worse on a window larger than the window size specified, where high quality (the default one) will, since in high quality, C2 resize first then render, in low quality, it'll only resize if the result is lighter

    Hope that is clear enough

  • I've saw great game on the NES, on the Megadrive, on the Master system

    I'm pretty sure those can be done in Mobile HTML5

    (you'd say it can be done with time and caution? how do you think they were made before?)

    "Every competent mobile developer would waste a great time thinking about the memory performance of the target device."

    In native too I think, mobile are like PC's, they are a huge collection of different hardware and software, heck, I think it can be even worse than PC.

    Maybe It is because I am talking about mobile HTML5 in a browser, doing multiplatform is always a pain, I think it is the only thing C2 doesn't make as transparent, where other engine makes it invisible (although C2 does a great job at that)

    At the end, people can use their compatible browser, go to my game, play it, without worrying about installing things, and if the game is optimised well, there aren't too much problems (some might say that some phones cannot run HTML5 properly, I have one like that, even the home screen sometimes have slowdown, so I do not worry a lot, for now, I didn't had a lot of issues at all, the only one was the non support of the audio API)

    At the end, mobile HTML5 is doable on mobile, is it worth it? Well, why go HTML5 if you just want to do a game to place it on mobile stores only (I know, because C2 is great and it's a shame it doesn't do everything the way some people think it should, because it is the best but export is cr*p because HTML5 is not good etc etc)

    At the end, I see that people want to C2, but don't want to HTML5 (I might be the only one who didn't care at al for mobile at first)

    PS: I am not talking at all about cocoonJS, I will never use it anyway, because I'd lost the benefit of HTML5, yet still would have to support it as a new platform, which would not be great since it's memory management

    EDIT:Didn't meant to sound rude, just tired of all of those

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I feel kind of stupid for wasting people's time with questions that might be trivial, but I'm about to give up and turn to you guys once again.

    I think the below looks pretty decent, but it's not currently working as expected (pausing/unpausing (is that even a word?) itself works, but not the restart action). Clicking the stop button will close the app (with the close browser action), but it will still run in the background. Is there no other option? I guess I can live with that.

    The "rewind" button is a bit more worrying. Clicking it simply gives me a black screen, this happens both during testing in the browser and when installed on my device. I don't understand why.

    (I'm using a global variable Pause to enable/disable pausing.)

    I can only speculate, but since you are still in pause mode when restarting the layout, maybe that is the cause of the black screen during rewind?

  • Hi everyone,

    trying to get my xbox 360 wireless to work, but i feel it's not being recognized by construct2.

    tried a few things but shouldn't this (see pic) be working already? simply extended the topdown shooter template

    thanks for your time

    You might want to look at the "Has Gamepad" condition, also, gamepads are detected only after an input (you might want to try all buttons, then see if it works)

    If that still doesn't work, maybe your browser doesn't recognize it, or something else is hapenning (I know that none of my controller worked on any browser except chrome canary for instance)

  • If the files will converted to png in the apk, its size will huge!

    For example: I use 100 jpgs which are together 30mb, if they will png's in the apk then apk size will 200MB+.

    If you images are photographic-like images, Jpeg is the format you'll have to set on export (via the image editor of C2), then C2 will not export the PNG, it's as simple as that.

    However, If your images aren't photographic like pictures, then PNG is your best best for quality/size, C2 does use PNGcrush on them so they are smaller, while the same quality (loseless compression), however you can still set them to PNG8 so they have less colors in them, which result in a smaller size (lossy in that case, but smaller noneless).

  • as I saw in a spam thread, it was indicated that "Message: pmppminh can only post plain text URLS until they have 500 rep. 115 URLS modified."

    However, when the url had

    before (

    someimagelink[/img SomethingSomething http://www.google.com] for exemple ), the URL was still clickable (not that any of us would click it in that particular case but still an annoyance to see that it could be easily broken)

    I still have a copy of the BBCode of the post somewhere if needed

  • Hey friends,

    I would really love to make an image inside C2 using Snapshot Canvas, which has a transparent background. For example... there are 3 layer, each with little objects, now I want to generate a picture of this 3 layers, showing transparency in the background.

    Hope you got what I mean

    Is this possible within standard C2?

    Greets,

    Beav

    Just make ever layer transparent (the one created by default isn't transparent), so the screenshot has a tyransparent background (however, the display will still show black at the background, but the saved snapshot will not have it)

  • Phuzz Well it was just portrait view originally, but I been getting request for landscape also so I set both orientations on but when you view the game in landscape the buttons and score are all the the left side like there still in portrait view. But I think I may have corrected the buttons, but I can't get the score and text to line up correctly in the corners even with anchor. Sigh if it not one thing its another... lol

    The anchor behavior needs you to place them in the corners in the layout view accordingly to the window size set in C2, the LeftEdge and TopEdge will help you, since it means that the left and top edges of your object will still be at the ame position relative to the chosen corner for every aspect ratio.

    Hope that helps

    Also : https://www.scirra.com/manual/88/anchor

  • The browser object can help you on this, add it to your project:

    https://www.scirra.com/manual/110/browser

    I think that in you case, QueryParam("location") is the expression you are looking for

Aphrodite's avatar

Aphrodite

Member since 20 Dec, 2011

Twitter
Aphrodite has 2 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies