Jayjay's Forum Posts

  • Do you mean an example of running an external file from within your game/program made in Construct Classic? Otherwise, I don't believe anyone has made an example of using fre:ac to convert MP3 to Ogg in the forums, but it might have a readme.txt file on how to convert files from a command-line parameter.

    This is definitely not an easy task, and would almost be harder to code than to make a simple PDF guide for your users to convert MP3 to OGG themselves. Is it absolutely necessary to convert MP3 to Ogg inside your game/program?

  • With an AJAX post the data is a parameter in the action, not part of the URL. As for dealing with it once the data gets to PHP you can look at: http://www.ajax-tutor.com/post-data-server.html

    The manual has some info on sending POST from Construct 2 as well: https://www.scirra.com/manual/107/ajax

  • You do not have permission to view this post

  • Change Max HP to a variable if it's not already (PV means private variable?), if player is still alive and gets a health bonus, add that bonus to Max HP. When player dies if you want their Max HP to reset to 100 then just have it set to another variable like DefaultMaxHP.

    Hope that helps!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My last post disappeared after my login timed out so here goes a quick reply:

    For level transition, do you mean show the last level as moving to the next? A solution might be to take a canvas screenshot of the whole level (keep player over top of the canvas and don't paste them into it) with a global object, then change to next layout and have the player walk in over top of this canvas object, as it scrolls into the layout (unbounded scrolling)

    What do you mean music system? Making an audio object global will allow it to play continuously in every layout if you mean to keep the same music playing between layouts.

    As for entering the rooms/respawn, are the levels pre-designed and hardcoded, or randomly generated?

    If pre-designed, you can just add a new invisible sprite at each doorway with a private variable (eg: EntryID). Then when player dies or at start of layout re-position player to the sprite where EntryID = global variable PlayerSpawnLocation (set this at the end of last level).

    Hope that helps!

  • Your best bet might be to run an external EXE from within Construct and pass parameters. I've read this might do what you need: http://www.freac.org/

    (as an alternative to the Linux dir2ogg)

    However, there is some special licensing stuff when it comes to MP3s and tools, so you might want to see if it's worth including a converter at all:

    http://mp3licensing.com/royalty/software.html

    http://mp3licensing.com/royalty/games.html

    Edit: Should be able to start another program with the File object action "Execute File"

  • They are part of the Sprite object expressions (same as how every Sprite automatically has Sprite.X and Sprite.Y) No global variables needed there

    If you go with option 2, TargetX and TargetY are examples of variables though

  • Sounds like a co-op game where you go to next level when teammates are all in the right spot? I'd do this in one event like:

    (option 1: An invisible sprite over the entire area that objects must overlap, code assumes there can be any number of players)

    Conditions:

    +PlayerSprite is overlapping ExitSprite

    +System Compare PlayerSprite.PickedCount = PlayerSprite.Count (all players here)

    Actions:

    -> Go to next layout

    (option 2: A distance check from a location)

    Conditions:

    +System Pick (By Comparison) PlayerSprite where expression distance(PlayerSprite.X PlayerSprite.Y, TargetX, TargetY) <= 32

    +System Compare PlayerSprite.PickedCount = PlayerSprite.Count (all players are within 32px of that point)

    Actions:

    -> Go to next layout

    Hope that helps!

  • Assuming that Sprite1 is always there (and is the only one of Sprite1 in the layout) and randomly sets its frame. Sprite2 is spawned and scrolls left, I'd do the following.

    Every tick -> Sprite set animation frame to random(Sprite.AnimationFrameCount)

    (spawning event) -> Create object Sprite 2 on Layer N at X and Y

    -> Set animation frame to Sprite.AnimationFrame

  • The AudioConverter seems pretty buggy, especially on Windows 8+ (no crashing in preview but unable to convert files, crashing in exported exe so can't test conversion)

    However, I think this is one way of using AudioConverter correctly code-wise: https://dl.dropboxusercontent.com/u/4714446/Codecs.cap

  • paradine, check out the Q3D plugin for Construct 2

  • Joannesalfa Unreal Engine 4 only just released as of March this year: https://www.unrealengine.com/blog/welco ... l-engine-4

    Personally, I'm not a fan of visual scripting the way Blueprint and Unity Playmaker do it (looks similar for both, and almost like a graphical representation of "spaghetti code"), but otherwise the engine is just so new that the community support, tutorials, and freelance/hired help probably won't be there to do what we need in a reasonable time frame.

    Insanity's Blade has been in development since early 2013, and our Kickstarter was funded by the end of 2013, even at that time we had looked at what was available and decided Unity was our best option.

    However, it looks like UE4 has a very nice pricing model and feature set, so thanks for sharing it <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    A0Nasser Not tried to make anything for mobile yet myself, I don't enjoy playing action games on my smartphone as much as I like puzzle and turn-based for that platform sorry

    lol <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy"> Maybe someday.

  • DUTOIT Heh anytime

  • DUTOIT Another CC post, but they didn't specify so it's good to have it in both methods

    As for CC, use the Date object and you can do stuff like:

    Date.GetHour & ":" & Date.GetMinutes & ":" & Date.GetSeconds

    That's 24hour, so if you want Date.GetHour in 12 hour format then store to variable and add a check:

    If HourVariable > 12 then HourVariable = HourVariable - 12

  • Looking at the code change you suggest, it would probably bring back the terrible slope jumping bug too, so I think the solution will be a little trickier still