briggybros's Forum Posts

  • Yeah, looking at it on my PC now, and it looks fine. (very nice!)

    Personally speaking, I've always used individual images for different colors for things like this, as it's a guarantee you won't run into this kind of compatibility issue.

    Not using this method would be easy for changing the colours of the box. However, the text is also changed this way and because the text itself changes along with the colour of the text, converting all possible outcomes to images for compatibility issues would result in 81 different images for the text which for me is not something which is worth the sacrifice.

    If the text doesn't take this change then I see no point applying it to the boxes as well.

    If anyone has an alternative to this please tell me as it would be very appreciated

  • I would think that is because of a problem with the WebGL of your phone. The colour changes in the text and the squares are controlled by the AdjustHSL in C2.

    I don't know how widely compatible WebGL effects are across a range of devices and browsers. Could somebody with more experience than me suggest if it would be better to have individual images for the different colours or just stick with Adjusting the HSL?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just to ask, would it be possibly to hook this up with some sort of VR? To me it seems highly possible. If the multiple viewports feature is used and the app was run on mobile, something like google cardboard should work with it right?

  • Hey, this is a simple game I whipped up. I feel that it is complete and ready for sharing so try it out!

    Comments and ratings are very much appreciated! be sure to submit your high score!

    Scirra Arcade

  • This is the solution for anyone else interested

  • donelwero That is exactly what I was looking for, thanks

  • Well, that is what I'm using to test. But what I'm trying to achieve may result in the data in the list from being exhausted. I need to do it mathematically so no matter how high the variable is, it will always be able to work it out.

  • Thanks

  • I am trying to work out if a variable is in the power of 2 series (e.g. 2, 4, 8, 16, 32 etc). To do this I thought it would be best to take the log of the variable to base 2, if that number was an integer then the variable is within the series. However, I can't find a way to test if the number is an integer or a float/double. Is it possible to test this? If not is there another way to test if the variable is in the sequence?

  • This isn't what I'm looking for though. Your example shows just picking random colours. The colours I'm needing cannot be the same and they must have the correct hue values (Hue's can be 0/15, 100/15, 200/15, 300/15 etc).

  • What I'm trying to do here is more than the title suggests. I want to, at the start of the layout, give 16 instances of an object different integers ranging between 0 and 15 so I can change their colour accordingly (This means every instance of the object will have a different colour). What I have so far is this (capx):

    However, when I run my game, the layout which this is for will not load. If I remove the flooring of the random it will, but then the colours generated can be too similar. How can this be achieved?

  • Figured out a solution for this, it may not be perfect but it's the best I've come up with so far. Simply split the sprite down to the separate parts you want the colour control over then apply the AdjustHSL effect to all of them. Then you can affect the properties of the effect from the event sheets.

    Example

  • Hello, I was wondering if there is an easy way to let the user define individual colours for different parts of the character in a terraria sort of way (Never actually played terraria but I've heard about it). I know I could just use a few preset colours for each different part and just have them stay together in game. Is there a way to keep my sprite in one image and change colours based on the different colours of the sprite? More importantly, is there a way to change the colour of a part using given modification values input by the user (In any colour format (so long as it works))?

  • Hello, I'm trying to learn my way around C2 by recreating some simple games in the engine. I have tried to make a bejewelled type of game, but something has gone wrong and I cannot find what's wrong. Can someone help me here?

    capx (In zip with the sprite icons)

  • Hey, I'm trying to make a random map by populating an array with data and then 'rendering' it with object tiles. So this is what I have:

    <img src="http://img194.imageshack.us/img194/4631/2y3j.png" border="0" /> This is executed at the start of my layout. However, this only populates the first 30 or so indexes, leaving the rest with a value of 0. Leaving me with this:

    <img src="http://img59.imageshack.us/img59/8522/ksff.png" border="0" />

    As you can see, the bottom lines are all the same. What's wrong here?