porky's Recent Forum Activity

  • I met some problem when using physics behavior and exported to Android devices via cocoonjs. Have you guys have the same issue?

    CAPX here:

    https://dl.dropboxusercontent.com/u/1396615/SharkGame/waterfloating.zip

  • Hello,

    I'm using the mobile device orentation as player control. so the touch.beta and touch.gamma controls player object move up/down/left/right.

    I also would like the game be playable in any situation(lean on sofa, laying on bed) so I set a global variable such as Initial Gamma and Beta so when ever player start/restart the game, the device orientation will adapt how player hold the phone.

    I exported the game to Android via CocoonJS, It works fine in most case, but when player laying on bed and hold device face down, the Touch.Gamma will return same value as not face down.

    The Gamma range is from -90 to 90, and it cause the control reversed when device is face down.

    Any suggestions or solutions will be very helpful <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Good suggestion for strings. since I got a lot of boolean variables and stop using some of them after the change, I'm thinking about using string instead.

  • Hello constructors,

    When you using variables to define the object states, which one you prefer to use, boolean or number? It seems number can do what boolean can do and it's more flexible to extend in the future. For boolean I need to add more variable, for number I can just set A=0, A=1, A=2... its just not that intuitive and needs more comments.

  • Hi, I wonder if it's possible to make tiledbackground object scale-able like sprite? At the moment I can make it by scale the whole layer in runtime. but it's very un-intuitive when edit the position in editor since I have other layers is not scaled.

    In some case the picture looks good in 2x or even 4x, so if its able to scale we can save lot of memory:)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great to know! I hope CocoonJS can support WebGL soon in the future. its been asked for a while:)

  • I just made a small example and find it actually works:P

    I guess my project goes too complicated maybe it's affected by other events. I can look it up myself first. Thanks Ashley

  • The "Pick nearest/furthest" seems not work with Family event?

    I have a:

    A Pick nearest to B -> B do something to A

    it only works with objects, if A is a family then it won't work.

    Is it a bug? if not is there any way I can work around?

  • I'm curious about how C2 handle the resources. Will it load all sprites or other picture images into ram in the beginning? Or is it just load those necessary things for current layout?(e.g. characters and level backgrounds)

    I'm trying to constraint the sprite sizes, re-use and scale them up to save up memory for mobile platforms. but since the project grows bigger it will eventually be many sprites.

  • OK I also realized its not work when webGL is on. For for mobile its not working, probably because of cocoonJS is not supported

  • Hi Pode, I just started to use this behavior, I use the "Change RGB Color" Action. It seems works in IE but not in Chrome. neither on mobile. Is there anything I did wrong?

  • Thanks for the help ppl! I got it working:) Here is my solution:

    <img src="https://dl.dropbox.com/u/1396615/bugImage/LevelTransition.jpg" border="0" />

porky's avatar

porky

Member since 28 Apr, 2011

None one is following porky yet!

Trophy Case

  • 13-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies