Spider_hip's Forum Posts

  • This is great thanks.

    I wonder how can I check if the specific point's rgba equals to some specific rgba ?

    I mean I want to check if (127,50) location's color is rgba(127,127,127,1) or not.

  • Hi all,

    For pc export, is it possible to create a xml file like (save1.xml, save2.xml) to save game with variables as I want. Then check folder if there are save files already. Read from xml to load. Plus I can use this to load general game data at start. So game would be moddable.

    Simple xml file example

    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <save1>
        <money value="13.000000" />
    </save1>[/code:2c8o2s9b]
    
    There is this functionality on game develop engine but it lacks many other features compared to C2. Even you can create folders with it's "execute command" function like ("mkdir data\save") and also you can create file with ("copy /y NUL data\save\save1.xml >NUL") . And you can easily write and read data. Is it so difficult to create a function like that to execute msdos like commands? Or is it impossible beceause C2 mostly targets browser instead of pc.
    
    My dream engine would load images,sound files, and datas(xml txt vs) from directories.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is a great example. It's nice to read from xml files. But what about saving back to xml file ? Is there a way to create a xml file, and save them into it? (For windows, node-webkit projects) .

  • I'm using landscape option and it works. But it turns to other landscape if I tilt device to other side and wait. In my game player moves with tilting.

    I added browser object and

    on start of layout -> lock oriantation to primary landscape

    But it didn't effect anything, it still turns to other lanscape.

    I'm using crosswalk.

    It seems, its very difficult to make such an easy tilting game to android with c2 or I suck

    Here is my other problem about my game

    https://www.scirra.com/forum/how-do-i-prevent-device-on-getting-sleep-mode_t110632

  • I'm using crosswalk as compiler. In my game I'm using only tilt as moving so device quickly gets in sleep mode.

    They say it's done in AndroidManifest.xml with <uses-permission android:name="android.permission.WAKE_LOCK" /> code.

    But there in no AndroidManifest.xml file in c2 export. So how it's done in c2 ?

    Thank you.

  • @those who wants newline fix

    Newline seems to work actually with wordpad. So maybe there wont be need to fix newline. Works great with wordpad, but doesnt recognise the command with notepad.

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

    My problem is;

    If I export my project with nodewebkit(desktop) and save file, It doesnt create and save any file ? Almost in any engine or language its possible to create new files (save files, xml files, data files, save images) Why it is so difficult, almost impossible with C2 ?

  • Thank you for this nice effect. Will it work with also animation sprites. If so how ? Do I also need to add mapping for each frames ? Did you ever try this

  • Well, as I know;

    player.x should be lesser than chest.x + 250

    and player.x should be higher than chest.x -250

    player.y should be lesser than chest.y + 250

    and player.y should be higher than chest.y - 250

    and for exact calculation you should add or subtract chest.width and chest.height

    Also as I know;

    you can use and invisible sprite where chest is located which has 500 width and 500 height. So you can use, if chest clicked, if player collides with invisible sprite. than open chest.

  • Hi all.

    I have a function to generate my world(2d array), and I repeat it 2 times to get nice result. It takes approximatly 2 seconds to run function 2 times. I will add a few more functions to improve my map generator. So Probably it will take about 10 seconds approximatly to generate world when I'm done with it.

    So I need a progress bar. (like minecraft etc) To tell player lands created, players located, height adjusted etc.

    So basicly I tried this for my 2 times loop.

    <img src="https://dl.dropbox.com/u/56268958/progress.jpg" border="0" />

    But I only see progress bar with 450 width. I can't see 225 witdh after first loop. It freezes until function called 2 times. What do I have to do ?

  • Yeah I wonder that too. It was very easy to use. Maybe It wasn't enough for everybody. But It was pretty enough for me.

  • Hi all...

    I wonder that is it possible to create a Parallax Scrolling Website with c2.

    I think I can make Parallax Scrolling effect with c2, with mouse scroll event. But will it be a really Parallax Scrolling website or will it be a html5 game ?

  • I liked your crazy tower game. I think you should make more of this genre.

  • My bad about movement. Thank you. I added inverted up-down arrows to solve that, and works like a charm now.

    Well actually I wanted to ask to set value to points, like "set value at" (arrays)

    Beceause I made something like this with arrays.

    dl.dropbox.com/u/56268958/neigbor-algorithm.capx

    And I pretty liked the result.

    First I randomly set values to all array points. Then for each xy, I look for neighbor values. %50 chanse to convert current point to neighbors sum.

    <img src="https://dl.dropbox.com/u/56268958/randomkomsu.jpg" border="0" />

    There are 4 green, 2 blue and 2 red neighbors. So mid square has a %50 chanse to convert to green. So it becomes like , continents at the end(with a 2-3 repeats).

    It's like this logic

    emanueleferonato.com/2011/05/13/flash-procedural-map-generation-example-land-and-water

    It divides squares. And gives chanse for child squares to look like mother square. But mine looks for neighbors. And looks like to them.

    I wanted to do smth like this with your beatiful board plugin.

    Sorry for my bad english.

  • Is there anyway to set a value at points (0,0) like at arrays. I tried it with board instance or with hex tx instance.

    For x 0 to 9

    y 0 to 9

    add 1 to value

    then on button click It gives only sum (100)

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

    With hex tx, I created a chess object. Then I tried to move it with grid move(hexagon) Up arrow is down, right arrow pressed It moves two squares right one square up, if two squares are available.

    dl.dropbox.com/u/56268958/hextx-test.capx

    It would be really great if somene could share hex tx example.

    Thank you

  • vee41

    thank you very much. I'll try that too.

    Or just use the max function.

    largestValue = Max(apple, pear, banana, watermelon)

    Wow I didn't know this either.

    Well what if there are 2 variables which have same max values then what will be the result ?

    Thank you