lionz's Forum Posts

  • I see your problem and yes the function will run just once. You do this with a global variable toggle. When the player stops or whatever the trigger is, set the global variable from 0 to 1. Instead of the function call have a condition variable=1. When the pathing has finished, set global variable back to 0.

  • Use a global variable as some kind of mode switch, for example have a variable 'buildmode' set to 0 by default.

    When you select a turret it goes into build mode, so you set buildmode variable to 1. Then you adjust the initial selecting a turret logic to have a condition only if buildmode=0. This locks out any future clicking on turrets while you are holding one on the mouse.

    Then to place the turret in the level you add to your turret placing logic a condition buildmode=1. This means it will stamp a turret and remove the follow mouse logic only if buildmode=1, and then once stamped you set buildmode back to 0.

    In short, you will only be able to select a turret to follow the mouse if buildmode=0 and you will only be able to stamp a turret down if buildmode=1.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That's the most convoluted inventory system I've ever seen, 50 events just to add or drop an item in an inventory. It looks like isininv bool doesn't get set to true when you create the item so when you pick it up it thinks it is a new item. That's all the research I'm doing on this one ><

  • There is a system action : Reset global variables, try this on start of layout

  • Where he has create enemy at hero.x+360, you would instead use hero.x-360.

  • It's using 'tickcount' logic which starts counting from when you start the game. This works fine if it's the first layout but of course if you go from another layout it has already gone beyond tickcount=2 for example. You could replace tickcount with another condition, such as a global variable that acts as a timer.

  • Logic looks fine, your ads are always failing from source. Have you added payment details and been approved by admob?

  • It's in format : go to layout by name "level "&variable, so becomes level 1, level 2 etc

  • Are we supposed to guess?

  • Thanks, I am kinda relieved it is a construct bug as I couldn't see anything wrong with my setup. Interstitial and banners seem to be working, reward ads are always failing and of course this was test mode only for now.

  • Post it as a bug (in the bug section) with the file. Looks like it is having problems trying to tween the fly after it was destroyed for being outside the layout and then the game suspends.

  • You can only assign one event sheet to the layout, however you can 'include' other event sheets which is what you need to do here. Right-click on event sheet 2 and include event sheet 1.

  • Great, thank you! :)

  • Are you saying it works as expected if you load into the layout but not if you come from another layout? If that's the case then share your file or events, it is probably an easy fix. If you're saying it never works as expected then that sounds like you didn't follow the tutorial correctly and well I've got no time for going through that =D

  • Nepeo are there any special requirements on construct side to display reward ads other than create reward video advert show:true?