Raganork's Forum Posts

  • Raganork Its not possible to change object like that in realtime, due to the way the physics works. Either use a physics on each car or change the image of the car with the physics instead.

    How can I change the image of car with the physics ? I want my car to be ready as soon as that layout gets load.

  • I have used Car physics behaviour (link- scirra.com/forum/behavior-car-physics_t69925 ) to make a top-down car game, But I am stuck at a point.

    My game have 2-3 cars.So instead of making different objects, I just changed the sprite of body to different one, ( they both have same size). But as soon as I change it, the wheels are coming out to the sides. I have tried many things, like disabling collision etc. but none is success. Can anyone please help me.

    Thanx in advance.

  • I have used this to make a top-down car game, But I am stuck at a point.

    My game have 2-3 cars.So instead of making 2 different objects, I just changed the sprite of body to different one, ( they both have same size). But as soon as I change it, the wheels coming out to the sides. I have tried many things, disabling collision etc. but none is success. Can anyone please help me.

    Thanx in advance.

  • okay. Thank you very much. It worked perfectly. Saved lots of repetitive images. Thanx again.

  • Vuuv: Thanx for the quick reply. I assigned the instance variable (number) for each image. But how can I access that variable ?

  • I want to use an image multiple times in same layout. Each image will act independently and pressing a image will do a different action. Currently, if i change name of an instance, it changes name of all other images as well.

    I also tried to put all images in an animation and each image is at particular animation frame. But the mouse/touch not detecting the image frame. Is there a way to do this ?

    Thanx in advance.

  • ArcadEd: Thanx dude.. thanx for the image tutorial. it made my game turn green the API Loaded and In-Game Ads call. However, I am not getting when to call the branding logo event. Can you please tell me where and on which event you called the GetLogo call ??

  • Yeah, their test tool is not detecting the LaodAPI function, but the 'Loading ads' screen is coming, which means it is loaded. I deleted the LoadAPI call from the Construct 2 event and that time the "Loading Ads" screen was not shown. That concludes that the plug in is installed and working.

  • First of all, a very very BIG thanx to PixelRebirth. You saved me from an obvious downfall of my project.

    After some RnD, I found that, after installing this addon, the game works absolutely fine, but it dont show this in the test tool which Spill games provided. Since we have not directly included this in the index.html file. So you need not to worry about the red colored 'API LOADED', as it is loaded but not seen. The advertisement is showing, which indirectly means the API is loaded. And the test tool is not working properly ( I think), the fnResume is called with fnPause.

    I submitted my game with this comments. Hope it works.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • PixelRebirth: Thanx for the plug in. Just to be sure, I must call the LoadAPI at 'on start of layout', and 'Request Ads' at the time when I need to show ads (for me, its on clicking play again button), right ??   Still in doubts. Do I need to make timescale 0 ? Is there a variable to change (for eg 'apiTry' in an example on this thread) ?

    P.S.- This is my very first HTML5 project and I am not too much familiar with Construct 2 yet.

    Also can you (or anyone) please help me on a problem I am facing. This is for the same game I am working on. Please take a look here scirra.com/forum/topic84434.html

    Thanx in advance.

  • skyhunter93: Can you please share a test capx of how you implemented the Spilgames api. It would be really helpful for us to know the proper steps, than experimenting out by ourselves. Thanx.

  • Thanx for a satisfactory reply. I will do this and tell you the result soon.

  • Guizmus: So does that mean the value returned by function (in your case my_functionB) is getting loaded in the array ?

    In that case, cant I directly set value of a variable to Browser.ExecJS("my_functionB")

  • Guizmus: I basically want that from javascript, I could do something which will make my connection back to Construct 2. So after completion of an javascript function, I should return back to construct 2 and continue further.

    Putting all in a nutshell, Is there a way to change value of a variable in construct 2 from javascript function ?? That is all I needed to solve my question

  • Guizmus: Can you please provide a quick capx for this. I tried your solution, but I am missing something and I don't know which. PLEASE