Rable's Recent Forum Activity

  • This is really a beginner thing but for some reason I'm unable to do it.

    I created an array with 5 X values to stock the high scores. The array is working correctly and I can see the values in the inspector.

    I ask to sort the array (array > Sort X axis), it is a one-dimensional array (width 5, height 1, depth 1), but nothing is sorted.

    Values are still 160, 21, 212, 46, 75

    After injecting 552, the array is now (after being sorted) : 21, 212, 45, 552, 75

    After injecting 1067, the array is now 1067, 212, 45, 552, 75

    My conclusion is that every entry is reduced to the first 2 numbers (552 is 55.2, 212 is 21.2, 1067 is 10.67) but I'm not asking for this in my code (unless I'm really missing something here). But anyway, in the inspector, values are displayed correctly as 552 and 212 so I guess the sorting should be correct.

    I've perfomed a test with a very simple project, injecting values at random in an array then sorting everything. It obviously works perfectly fine. So now I'm really scratching my head to know why my array wouldn't sort, even when I'm on doing it every tick on a layer which doesn't do anything else... :-/

    Any idea of what I'm doing wrong?

    Thanks !

  • Great thread, helped a lot!

  • Hi everyone,

    This post is dedicated to communicate to Ashley and Scirra team simple things that I would like to see in C2 or C3. No fancy stuff here, these are mostly workflow and interface related-stuff.

    1) Search :

    Search for at least 2 different keywords

    At the moment we have only one search field, so we can search for “hero” or “set bullet enabled”, but up to my knowledge it is impossible to search for “hero” AND “set bullet enabled”. So my first search would give me all “hero” entries in my event sheet and the second all “set bullet enabled” for all objects. An advanced search would be really useful very often.

    Highlight the searched terms in the event sheet

    If you search for a keyword which appears in an event which has 100+ actions in it (typically long dialogs), you’re in for a long work to find the searched word. It would be really useful to have the searched term highlighted in the event sheet.

    Less important would be an advanced feature “search in all event sheets” which would open every event sheet in which the searched term is found and apply the search in all of them.

    2) Navigation

    When panning an event sheet by holding the middle mouse button, the pan currently stops when your mouse hit the top or bottom of your screen, which makes just scrolling with the wheel faster. I really would like to have the pan continue as long as I’m moving my mouse, even if I reached the border of the screen. It would be much more effective to navigate large projects.

    Alternatively, an option “number of lines scrolled with the mouse wheel” would be great. At the moment it’s about 1.5 lines. I really would like to be able to make the mouse scroll faster.

    Page up / page down to move 1 screen up or down?

    3) Workflow

    "Create blank event above" shortcut

    I already asked for this 1 or 2 years ago, and I'm still missing it. At the moment, if I want to create a blank event above the selection (in order to paste copied conditions/actions) the fastest ways are either

    B (create blank subevent) --> drag and drop the blank event above the selection (this one only works if your heirarchy is simple enough)

    or

    right click --> Insert new event above --> EnterEnterEnterRightArrowDelete

    None are really practical for such a basic feature, which you probably need 10 times a day. There are still plenty of unused keys on the keyboard for which we could have nice keyboard shortcuts.

    Maybe some of these are already implemented in C2 but I’m not aware of them. Please let me know if it’s the case.

    Thanks!

  • Arima My appologies, I don't know how it happened, but for some reason I missed it! I probably need to sleep more. ^^'

    So yes, this is exaclty what I was looking for, thanks a lot!!

  • Very interesting replies!

    Thanks Arima for the link, but unless I'm missing something this tutorial is for creating my own web font, with a trick to avoid the default font showing up briefly before the webfont is downloaded when being online. I don't see anything regarding offline usage of web fonts. Still useful!

    SketchyLogic

    Thanks a lot for the clarification. I was really wondering the reason behind the change and am reliefed that it's not something like "Steam prevents you from using web fonts". ^^' Thanks also for driving my attention towards the windows magnification issue. I was unaware of it.

  • Hi everyone,

    I would like to ask a question : how mandatory is it to use sprite fonts vs text objects for a game to be released on Steam?

    I ask this questions because SketchyLogic posted here that "Switching from regular text to spritefont text was a nasty process."

    Is it really mandatory to do that transition from Text objects to sprite objects for a professional-quality game? Why should I bother to do this if the text object is working well? In my case, this switch will take literally weeks, so I'd like to avoid that if possible.

    The only thing that I can think of is that if there is no internet connexion, the font switches back to a default font, but who's not connected to the internet nowadays?

  • Did you try creating large invisible rectangles for the edges? Make them wide enough so that the ball will never be able to go through them.

  • Hi everyone,

    I have a problem playing a video on Safari. The video will simply never be displayed, on both Mac OSX and iOS. It works fine on Firefox and Chrome.

    Using the Video object I specified each of the 3 formats, but from Safari inspector it seems like only the MP4 is trying to be accessed. What's weird is that when I copy the direct link to the video from my server (using Cyberduck), and copy it in Safari, the video is played correctly in the browser.

    So to sum it up:

    • The video is in the correct format and can be read by Safari
    • The video is playable directly from the game's folder.
    • When played in the game, the video will not show up.

    I've read something about MIME types, but I guess that as the video alone could be played from the server, it shouldn't be that?

    Any idea of what's happening?

    Thanks !

    EDIT:

    I finally solved the problem. It was due to a CAP letter being automatically shrinked down to low case by (probably) the FTP client Cyberduck. For some reason, every browser managed that except Safari. So if you run into the problem, be sure to rename your videos' names to low case.

  • Awesome, exactly what I was looking for! Never thought about using this. Thanks a lot!

  • Hi everyone,

    I'm looking for the cleanest way to trigger actions if a given object is currently not existing on the layout. I don't know any existing conditions to check that, so what I generally do is:

    (If I know there is no invisibility going on)

    • Object is visible > (no actions)
    • ELSE > (whatever actions I want to do)

    I also sometimes do it with "is on screen", but it's not clean. If the object is on the layout but outside of the screen boundaries and invisible, it will not work.

    Am I missing a simple action to check that, or is it a cleaner way to do it?

    Thanks!

  • Sorry, I solved the problem. The object wasn't displayed correctly due to the cache of the browser. Switching to another browser makes it appear correctly and your answer is thus everything I need !

    Thanks a lot !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks a lot for the fast reply, Kyatric. But I'm afraid it doesn't fix the problem. :/

    When the objects on the layout are destroyed then are created again, their size is then normal. But the objects which are present on the layout upon loading are still very small. (While their size on the layout in the editor is correct, it only happens in the preview)

Rable's avatar

Rable

Member since 6 Aug, 2014

None one is following Rable yet!

Connect with Rable

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies