dop2000's Recent Forum Activity

  • No need for a button, any touch event will do. It's the same in C2.

    This is not something specific to C2 or C3, it's a browser limitation, you can't request full screen without user interaction.

    I believe when you build your mobile app, then you can switch to full screen straight away.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can only request full screen after a touch event (but not "on Touch start"). For example:

    On any touch end: Browser Request Fullscreen

  • Add a tag "music" to your music playback. Change your event to this:

    Audio Tag "music" is NOT playing -> Audio play "MyMusic.mp3" with tag "music"

    What do you want to control will this slide bar - music volume?

    On slidebar change -> Audio set "music" volume to slidebar.value

    Here is how you properly change audio volume:

  • Hi irina

    I replied you in PM.

  • So basically take a random item from the inventory and drop it on the ground? You shouldn't have used the word "spawn", it usually means creating something new

    Anyway, here is the code:

  • worm1

    Here you go:

    https://www.dropbox.com/s/phwh7xejbayll ... .capx?dl=0

    Simple code, no arrays. You can even remove the ID variable and use IID instead.

  • Seriously, why do you need this array? Working with instance variables in C2 is much easier than working with 2D arrays.

    If you are sure that you need the array, consider doing this:

    Create 1-dimentional array, set Global=No, add it to the same container with the sprite. Now each instance of sprite will have its own instance of array for values. Sprite+array in each pair will be logically linked together, you'll not need the ID variable. You can pick a sprite and its own array will be picked automatically, and vice versa.

    This code will search all arrays for a number N and destroy sprites (and their arrays) if the number is found:

    For each Array
       Array For Each X Element 
           Array Current value = N    ->  Sprite destroy   
    [/code:ak13oj4u]
  • You can add gravity to Bullet behavior, don't need physics for that.

  • Try adding these actions before the "AAAT acquire target":

    AAAT clear turret targets

    System Wait 0

    If this doesn't help, could you share your capx?

  • It depends.. If your objects are simple shapes (circles, rectangles), you can do this with math.

    If you need to roughly detect several stages of overlapping (touching, some overlapping, overlapping a lot), you can scale down the original sprite to 0.9, 0.5, 0.2 etc., every time checking if it's still overlapping another sprite. And after that return it to 100% size. Overlapping checks are quite fast, so you can do all this in one tick.

    Also you may find some useful ideas in this post:

  • I made quite a lot of changes, enjoy!

    https://www.dropbox.com/s/dtcc5uplj25gw ... .capx?dl=0

  • Or use a dictionary. You can store "box1", "box2", "box3" keys in a dictionary and access them using expressions like Dictionary.Get("box"&N)

dop2000's avatar

dop2000

Online Now

Member since 26 May, 2016
Last online 31 Jan, 2025

Twitter
dop2000 has 257 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies