nutmix's Recent Forum Activity

  • I want to place some objects randomly, but make sure they dont overlap. I am using families because I also want to set some instance variables at the same time. Say the family of sprites is called "ships"

    I can do something like this:

    on start of layout 
    for each ships                 -> ships -> set X to ...     
                                   -> set myinstanceVar to ...[/code:2px6zc52]
    
    Now I want to do something like "if ships is overlapping ships then start again for this ship" WITHIN the for each ships, but cant figure out how to do this.
    
    I thought of using some nested functions, but you dont seem to be able to pass objects to functions (unless you pass the UID as an integer), which makes it harder.
    
    I saw some function examples with "remember picked object" set somewhere, but could not find this feature.  Anyone got a hand example?
  • I am assuming that the drawing coordinates are relative to the canvas container thing, not the top left of the projects layout, as I center the layout (by "set scroll X/Y" to the center). I think its your plugin rojohound.

  • I used to be a guru in C2, but havent used it for 2 years, coming back I cant figure out for the life of me how to draw a line.

    I have the canvas object added to the project. I dont know if this canvas object is part of C2, or some plugin I installed years ago.

    Anyway, when I do Canvas-> Draw line from (20,20) to (200,200) with color "black" and line width 1.0

    Nothing happens no lines are drawn.

    How do you define which layer the canvas is drawn on?

    Any ideas? Probably something really simple.

  • Hi, A friend with a mac is asking if he buys a C2 personal license now, if he can upgrade for free to C3 when it comes?

    This is assuming that C3 supports Mac natively

    Simon.

  • Sadly, these do not seem to be suitable for a scratch card because

    a) you get staccato dots, instead of the required smooth swiping reveal, if you do it quickly. I tried changing the project to use Is Touching instead of every tick - same problem. I guess this is a limitation of how often C2 samples the mouse.

    b) its not possible to know how much of the canvas was scratched, to complete the reveal and award the prize.

    c) it doesnt work on mobile (ipad at least), even if you use touch events. No idea why.

  • I could not find a copy of rexes original rex_function anywhere online, so went through some year old backups of my long dead laptop and found a copy of it - phew! If anyone has the same issue, pm me and Ill send you it. It seems to work along side the official function, as its called "func" not function.

    So the next issue is how do I migrate my hundreds of rex_functions to the official function plugin or rex_functoin2? i assume I have to more or less re-write them all from scratch? Or is it possible for me to hack source files in notepad?

    the only reason I want to do this is so that in another year from now, if I cant find the original rex_funciton, I am able to open the project still and not lose several man months of work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I want to open an older project which used rex.rainbows excellent function plugin. I understand scirra have added something like this with the same name, and that rex has created a new version called function2

    But I still cant open my project. there seems to already be a pugin in the standard install dir of construct2. I tried installing function2, but this didnt help.

    Any ideas? I don't want to overwrite the official function plugin, as I dont want to have this problem forever...

  • For Mobile devices, C2 is very poor at handling forms (login, create account), navigation, settings, help pages, tutorials etc. It has no dialog or modal dialog support, very basic gesture support and very few UI components. For this reason we abandoned development of a game which was almost complete.

    We are now thinking the way forward is to develop most of the app outside C2, and are thinking of Sencha Touch. This would handle login, create account, payments, game history, help, navigation etc. It would launch the game.

    Has anyone done something like this?

    Issues we see are:

    1. launching the game, possibly in side some object (e.g. a div) with menu navigation outside the game, or possibly full screen.

    2. passing in logged in session info. This could be done via a server, and the app pass the session ID to the game via url parameter. Somewhat open to abuse if people started guessing the random session ID. Any other ways which are secure? E.g. using local storage?

    3. FB integration. If the outer app used FB login, and the game wanted to show say a FB leaderboard, how would the game get hold of the FB login/session details? We have not done a FB integration, so are noobs in this area.

    4. How to close the game and get back to the app? We tried using System: Exit Application and calling window.close() from the game but didnt have any luck with these (they don't do anything).

    5. Packaging up to make a single native app, e.g. with phonegap. How would this work? I assume it would not be possible.

    We are hoping these are silly questions, for which there is a trivial answers...

    Any thoughts?

    Does anyone have an example of this approach?

  • Currently, we have written a number of stand alone games in C2, not wrapped. Looking at doing a FB version, which will work fine on desktop just using the C2 FB plugin, but we are not sure how it works on mobile. We are assuming that to use FB on mobile (for authentication, payments, leaderboards etc) we would have to wrap the html5 game in either phonegap or cocoonjs. Is this correct? Or can facebook on mobile (web based facebook page or mobile facebook app) launch native HTML5 apps?

    Thanks,

  • If we develop a game using C2, and want it to use FB as a platform for login/freemium payments/leaderboards etc, its easy on desktop. No extra SW or Licenses required.

    But FB on Mobile is a different beast. Currently, it will offer to download a native version of your app when you open FB in a browser on a mobile device.

    So to use FB, do we need to wrap the app and make it native?

    I understand that cocoonjs is the best option, except that it costs a fortune (I have heard £50/m and up), and doesnt work with the C2 FB functionality, so its a non starter for us (unless the app took off and made money).

    What options are there for creating a FB game on mobile?

  • Thanks Ashley. Not a bad idea for a quick prototype of the server, but the real version would need to handle authentication, persistence to DB, transaction & payment system integration, load balancing etc. If you ever decide to make server side api or protocol definition, let me know! The solution for this kind of thing I think is just to use your existing socket api, but then we lose out on the **** features like lag handling. its not for a run around and shoot type game, its for a bingo type game, but the key is that the balls appear at the same time for all clients etc. which is always tricky.

  • There are some pretty nice features in the mutliplayer client object, but our mutliplayer game requires its own server with server side logic. The question is, is there any server side api or protocol description we could use to construct our own dedicated server? We don't really mind the language, it could be java, javascript, c++, anything really, but ideally would run on unix. Think bingo server which sends out balls as the server calls them.

    Thanks!

nutmix's avatar

nutmix

Member since 16 Aug, 2012

None one is following nutmix yet!

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies