dk865's Forum Posts

  • You do not have permission to view this post

  • Thank you so much, you've been a great help.

  • Okay, that'll work! Thanks a lot! That gave me another great idea to basically add what in Cookie Clicker would be called, "Sugar Lumps" Can you help me use the date to first add in coins since suspension, then I'll learn from that. Also, is it possible to only add them in since suspension, and not since the tab was closed, computer shut down/hibernated, etc? Again, thanks!

  • Never mind, I figured it out! Thank you SOOOOO MUCH!!!

  • Thanks! What exactly did you mean with the container, will they both share the same variables, or what? Also, I set it to CoinsDisplay because if I set it to the number, something would go wrong after a while and it wouldn't change the price when the price changed.

  • Hello Guys!

    If you recall, I'm making a Planet Clicker game, and thought that some people might want to have it up in the background to give them coins even when they need to switch to something else temporarily (like reading an email for example). I saw a post, but it was from 7 years ago, and Construct 2. I was wondering if it is possible to prevent the suspending when you leave the tab or open a different window on top. I saw in the old post that it would run in low frames, which isn't a problem- all it needs to do is add a variable to another variable every .1 seconds, and every 1 second. I would be okay if it pauses the audio (in fact, this would be preferred) or unloads *small* amounts of data, like unused images and stuff too. Does anyone know how to do this? Also, I have the free version of Construct, and only 1 event left ): I've been looking through and trying to optimize stuff.

    Edit: After clearing some extra homemade special icing off the top of Santa's Cookies, I now have around 7 events left, but don't wish to use them all.

    Tagged:

  • Hey everyone! I'm currently working on my Planet Clicker game and could use some help with a specific event:

    + System: Every tick

    + Price: Matcher = Coins.Matcher

    + Coins: Matcher = Price.Matcher

    -> Price: Set text to Coins.PriceDisplay

    I've set a unique instance variable ("Matcher") on both a Sprite Font (named "Price") and a Sprite (named "Coins"), with each having the same unique number shared between one Price text object and one coin. The goal is to update the Price text every tick to display another string instance variable on the Coin called "PriceDisplay" (that is set every tick to the "Price" number variable on the coin so that I can use "Price" for calculations, and "PriceDisplay" for text Input.)

    Additionally, I've implemented logic for when the coin is tapped or clicked to perform calculations:

    + Mouse: On Left button Clicked on Coins

    + Coins: Price ≤ Coins

    -> System: Add Coins.CPSAdded to CPS

    -> System: Set CoinClickAmmount to Coins.ClickMultiplier × CoinClickAmmount

    -> System: Subtract Coins.Price from Coins

    -> Coins: Set Price to Coins.Price × Coins.PriceMultiplier

    -> System: Add Coins.ONECPSadded to OneCPS

    -> Audio: Play PurchaseComplete.webm not looping at volume -10 dB (stereo pan 0, tag "")

    -> VariableSetter2: Start Timer "Purchased" for 0.5 (Once)

    Now, when transitioning to a different shop layout, the text boxes only display "Price," which is the default text I've set in the layout editor as the text. They are supposed to dynamically change every tick based on the game logic. Both shops share the same event sheet, and all text boxes have unique numbers matching the coins Matcher variable. However, they are not being updated to display the correct text at every tick or at all. I've debugged the layouts, and the matchers seem correct, and the Price display is correctly set to the price, but the text boxes remain unchanged.

    I apologize for the lengthy post, but I would greatly appreciate any help or insights anyone can provide!

  • Hello Everyone!!! I just released my game that took me over a month to make. It is called Planet Clicker. At first when I released it, it was decent quality, however, it had some ugly default html buttons in it, and a little checkbox in the corner to select to load a game rather then start a new one. All of those ugly impurities have been improved, and there are now many sounds too! I removed all of the default things and replaced them with nicer things. Now, you can also use the spacebar! Check it out! https://www.construct.net/en/free-online-games/planet-clicker-62046/play

    Thank you all for supporting me!

    -dk865

  • It depends: Touch with mouse input enabled can work if all you need are left button clicks and drags. If you want something like detecting the mouse cursor hovering over an object, you still need the Mouse object for that, as the concept of hovering doesn't apply to touch input, or if you want to make use of middle/right clicks or the mouse wheel.

    Thanks. I have am making a Clicking Game (what I have so far here) and use mouse for things like hovering, but I have a text button that when you click on it, it goes to different layouts. I was wondering if I needed to use mouse and touch for it to work, but you answered my question! Thanks a million!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello guys! I am wondering if I need to use Mouse and Touch events on an object to add compatibility for Computers and Mobile, or if I'm fine with just touch. I know touch works great for my computer which has touchscreen, so I'm wondering if it works for all computers so I don't need to include mouse for a lot of stuff Thanks.

    Tagged:

  • Hello Guys! I want to make a midi visualizer in Construct (free version) and I need to be able to use midi in connections, or at least be able to read midi files, and take action based on the notes at certain times. I saw this https://www.construct.net/en/game-assets/addons/web-midi-3318 in the addon store, but it costs 12 dollars, and I want something for free. Does anyone have any ideas? Thanks.

    Tagged:

  • Hello! As the name states, I would like to make an Autoclicker Detector using Timers, or anything else that will work with little events. I am making a clicking game, and it speeds up the game to a far more then reasonable beating time if you use an autoclicker. I tried using a timer, but on my second click no matter what, it takes me to the autoclicker detected layout, no matter how long apart. Here is what I have:

    Can anyone help me?

    Thanks.

    -dk865

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post