KhaliCanvasStudios's Recent Forum Activity

  • Scroll to behavior is attached to a single sprite. The camera/window scrolls but it scrolls slower then the sprite to which it is attached, hence the player is able to leave the visible area on screen.

  • bump

  • Sorry. Not sure what you are asking. I used XDK to make the apk. I uploaded it to the play store.

  • As a test I uploaded a blank project with only ads and a button.

    Things I have made sure

    *XDK project has the plugin, admob pro with the cordova extension

    *Used the ad ID from admob website in Construct 2 admob object

    *Linked the admob ad to the app in play store

    *Test mode = no, in Construct 2 admob object

    *device connected to the internet

    My Project

    1 on start of layout, preload banner ad

    2 on banner ad loaded, enable button

    3 on button clicked, show banner ad

    Two never works :3

    Pre thanks

  • Looking for an 'elegant' way to write an even such that it is only executed if a certain condition is true for all existing instances of a specific object. Lets say all instances of object 'sprite' has bullet speed 0.

  • Set scale to 0.75 works but it the next set scale (0.25) does work. It just gets destroyed.

  • So I prototyped a game for android, lets say game1. I wanted to make another game that shared some mechanics with the first one, lets say game2. So I copied it and started working on that.

    Now installing game2 on my android it asks if I want to replace the old version -_-

    Edit:

    But I don't want it replaced. Because they are two separate games. -_-

    Pre thanks

  • If the the object with the behavior itself has the solid behavior will it recognize other instances of itself as an obstacle?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Found a fix myself. Apparently some events just don't run when its a subevent of 'On start of Layout' so found a workaround. Thanks anyways though.

  • [http://]imgur.com/C6LoiLJ

    i have events such that

    --> Object B.x = randomx

    --> Object B.y = randomy

    While

    Object B.x = randomx

    Object B.y = randomy

    Object B.boo = true

    -->pick random value for randomx and randomy between maximum and minimum

    -->create Object A

    -->Object A.x = randomx

    -->Object A.y = randomy

    -----------------------------------

    For each object A

    Object B variable = object A variable

    -->set location

    -->Object B.boo = true

    basically what I am trying to do is make a loop that keeps on choosing random values of randomx and randomy until it finds an instance of Object B with the same corresponding values of its variables x and y but its boo is set to false (or not occupied). Then create Object A and set its local variables corresponding to random x and y. So that all instances of Object A occupies an unique instance of Object B.

    But it just does not work :p what ends up happening is that all instance of Object A have the same values of x and y and hence occupies the same instance of Object B

    pre thanks

  • If works!! thank you

  • Lets say there is object A. And object B. Object A is 'set location'ed to object B when ever their local variables (lets say x and y) are equal.

    "http://" imgur.com/mDslt6Z

    I got it to run perfectly when there is only one instance of Object A but multiple of Object B.

    Eg:

    Object B

    x=1

    y=1

    Object B

    x=2

    y=2

    Object A

    x=2

    y=2

    But does't work correctly when there are multiple instances of both objects

    Object B

    x=1

    y=1

    Object B

    x=2

    y=2

    Object A

    x=2

    y=2

    Object A

    x=1

    y=1

    all instances of object A gets 'locationed' on the same object B even thought hey have different instance variables. The instance are created during run time and the numbers of instances each object is not constant.

    I know why. Because the object first chosen for comparison will be the object whose instance will be remembered to be used further in the event. But I just can't seem to find any solution to this. Tried like 10 work arounds, such as comparing the same variables twice, once starting with Object A and then B but nothing works.

    Pre thanks

KhaliCanvasStudios's avatar

KhaliCanvasStudios

Member since 23 Jul, 2015

Twitter
KhaliCanvasStudios has 2 followers

Connect with KhaliCanvasStudios

Trophy Case

  • 9-Year Club
  • x2
    Popular Game One of your games has over 1,000 players
  • Email Verified

Progress

11/44
How to earn trophies