cvp's Recent Forum Activity

  • Excal

    The reason why you are only seeing ? a menu background is because you spawn it half way out of your layout.

    Your image origin on the menu background (ProgramSpawnBG) is in the middle. I tried setting the Y value of the ProgramSpawnBG orgin to 0. That made the whole menu show.

  • You wont get rid of me by making a new thread <img src="smileys/smiley17.gif" border="0" align="middle" />

    Looking at your capx atm but havent really found your issue yet. But... is there any reason why you create and destroy the menu each time? cant you just make the menu visible/invisible each time?

    There is also an issue with your tooltip not going away if you go from 1 spawntype to another. (because your destroy funtion only destroys the tooltip if you are not hovering over one of the spawnpoints) So if you get the tooltip for Hack and then move the mouse directly to Bitware then the tooltip for Hack will stay.

  • Excal .... ahh true <img src="smileys/smiley1.gif" border="0" align="middle" />

    But... then again.. that only works if you do not destroy spawnpoints. otherwise you can get 2 spawnpoints with the same number.

    e.g.

    spawnpointCount = 0

    create spawnpoint

    gets number 1

    spawnpointCount = 1

    create spawnpoint

    gets number 2

    spawnpointCount = 2

    create spawnpoint

    gets number 3

    spawnpointCount = 3

    destroy spawnpoint 1

    spawnpointCount = 2

    create spawnpoint

    gets number 3

    You see what i mean... So if you destroy spawnpoints you have to keep track of the numbering yourself.

  • That should be no problem. if you add spawnpoints on the fly just have a global variable named spawnpointCount. Then each time you add a spawnpoint set its spawnPointNumb to spawnpointCount+1 and also count up spawnpointCount --> spawnpointCount = spawnpointCount + 1

  • Sry what to you mean by no entry?

    Do you mean initial value? i hardcoded that. If you click the different spawnpoints in the layout you can see the variable is set.

  • Something like this?

    .capx

  • Yes it is.

    Under System there is an event called "is on platform" under special conditions.

    In that you can choose between different platforms.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • it is the newest stable release.... just download it.

    The example does what you describe.

  • Are you running it in a browser on your android device? or via cocoonJS or?

    As Ashley states here. there is really no option to look the orientation in a browser.

    But if you use one of the export mechanisms(cocoonJS, phonegap etc.) you can do it there.

  • This is a simple solution.

    .capx

    This uses velocity which is a constant pixel movement upward. You can play around with using impulse or force as well. Depends on what it is you want to achieve.

    Was that what you were looking for?

  • delgado YEEY <img src="smileys/smiley4.gif" border="0" align="middle" />

  • I just tried your example in chrome. And it seems to work fine when you just resize the window. But if you maximize or minimize the window it looks like the browser-->resize is not called.

cvp's avatar

cvp

Member since 23 Sep, 2012

None one is following cvp yet!

Connect with cvp

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies