grafix4d's Forum Posts

  • I think you only can do it with the screenshotting function, or easier, with the canvas or paster plugin. The key then is pasting the b1 b2 or b3 onto the canvas/paster and then use the image url of canvas/paster in the load from url expression of the sprite a.

    Thank you for replying - but I would expect some more low-level way to copy an image from sprite to sprite.

    On the other hand I have searched all features and could not find something appropriate...

  • Hi all,

    can someone please help on that ?

    In my -let's say- game, I have a sprite called "a" and I have some other hidden sprites "b1", "b2", "b3"

    Sprite "a" is blank (white image) when game starts.

    The other 3 "b" sprites have from one different image each.

    How can I make it so that when I press a button, to load the image from sprite b1 or b2 or b3 to sprite a ?

    Is there some command like a.image = b1.image or maybe a.loadimagefromsprite(b) or anything similar ?

    Thank you.

  • Hi all,

    could I have some help on that please : When my app starts, uses a visible sprite which already I have given an image to display.

    Also the app has some other non-visible sprites - I use them only to keep their respective images. Now, what I want is to be able to load the image of any of the non-visible sprites, to the visible one, by keeping the other visible sprite's properties (name etc).

    I tried to make use of load image from URI but could not figure out how it works.

    Is it possible to do what I describe ? Thank you in advance.

  • Nevermind, I found solution.

    Thanks anyway.

  • Hi guys, please help me on the following problem I try to solve for the last days :

    I compute some random value and then I want to do things by checking the range of the value and some other things. For example :

    myvar = random(100)

    if (myvar >= 0) and (myvar <= 10) and (checkA) then do_action_A

    else

    if (myvar > 10) and (myvar <= 20) and (checkB) then do_action_B

    else

    .....

    else

    do_some_default_action

    I have tried using System/Compare values and also Branch component but could find some solution, probably because I am used writing code and not working on this design-style interface.

    Please help how can I implement that.

    Thank you in advance.

  • Thanks for replying, basically it would help a lot if there could a step by step guide for this.

    I mean, I just create a Construct2 empty project, save it (nothing added to it except than doing necessary additions for setting project author and description and setting project to fullscreen) and then just export it to Mobile/Phonegap.

    The exported files I have are :

    <img src="http://grafix4d.dyndns.org/scrshot1.jpg" border="0" />

    Then, I close Construct, I suppose it's not needed any more.

    From now on, how do I setup the Eclipse / Phonegap project in order to use these exported files ?

    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 for replying.

    Unfortunately, it does not work at all.

    I mean, I get the exported files from Construct, replace the whole content under assets/www, having created a newly empty Eclipse/Phonegap project just before.

    My opinion is that since Scirra says that the games created with Construct can be exported to all these platforms, should really support and not just write it. I bought a Construct license just because I believed that it could do all these.

  • Could someone please reply on this ?

    At least to know if it's possible, because on the scirra website you write that Construct2 can export to Phonegap format.

    There is no reason to export if it's useless.

    So what's next after exporting ?

    Thanks

  • Hi guys, I wish a happy and healthy new year.

    I have been using Phonegap in order to develop several simple applications using Eclipse and all needed tools through it.

    Now I tried to export a simple Construct game I wrote to Phonegap and then my question is how do I use the exported files in order to build the final apk file using my local Phonegap installation ?

    I tried the Phonegap build service, received an apk but seems like the apk is not valid or has some problem since my device (Android 2.3.3) cannot read and install it.

    Any help would be welcome. Thanks !

  • Thanks guys.

    Here is my first sample :

    grafix4d.dyndns.org/test1

  • Great ! Thank you R0J0hound. Just like real physics...

  • Hi all, I am studying the Physics-revolute joint example and would like to ask : how can I set the Cog so that it does not fall and behave like its center is static in the background ? Like a steering wheel.

    If force is applied then it may turn depending the force and angle etc but not to fall - only to spin.

    And of course the joined object on it, to follow its movement.

    Thanks a lot.

    BTW : Construct 2 is great.

  • Thanks a lot ! It's a different approach compared to viewport I have been using until now to traditional development but I think it will solve my problem.

  • nobody ? at least someone to reply if it's possible or not, so that I try to find some other solution.

  • Maybe you just need to update the text in the field ?

    Variable may change but text should be updated too.