Kyatric's Forum Posts

  • There might be some issues with sprites and audio files in the long run.

    Keep looking at this thread though, a more useful answer might come. I don't know 7 very well, I haven't installed it yet, so I can't be the most helpful here.

  • LOLAudioPlayer.capx

    I commented the capx.

    It shows how to set up the audio and use it, as well as a few tricks using animations and a "defiling" text (pretty much like the HTML <marquee> used to do).

    Those tricks are auxiliary (not directly related to audio).

    The sounds and sprites used are those included in C2's Free Bundle (top package to make quick examples with good quality music, sounds and sprites).

  • You have to make sure that your cell's image is 32X32 pixel.

    Or, if you want to modify the size of the cell (sprite) be sure to put the same size to "Player".

    It also helps to stick to power of 2 measures.

    QuickGridMovement2.capx

    The movement works, but hard to figure since there is no visual "refering".

    Try to bash an arrow key, at some point you will have the impression it is not moving, and then reach an edge.

  • I tried again, and like Tom, 15 and it did not spawn again.

  • Put a single frame in the animation (a frame of a cell).

    Delete the "set animation frame" line (since it is not required).

    Like I did for the example of the PathFinder behavior.

  • Bumping this, that would help me with the idea I currently have for the C2 comp <img src="smileys/smiley1.gif" border="0" align="middle" />

  • No prob! The community definitely saved me when I was first starting out, so the least I can do is give back. <img src="smileys/smiley1.gif" border="0" align="middle" />

    And you've been doing awesome so far. Keep up the good support <img src="smileys/smiley2.gif" border="0" align="middle" />

  • On start of layout (event1) I make the grid (thanks to the two loops "ColsLoop" and "RowsLoop").

    From event5 it is just the keyboard control, making sure that when you hit a keyboard, moving the player won't take you out of the layout.

    Moving the player is changing its X or Y component by its width or height (since the player is the same size as the grid cells).

    In this implementation, the grid is purely visual, we have no interaction with it.

  • I guess updating to SP3 could be a good start. Not sure if it is absolutely necessary but it can't hurt to have your OS fully up to date. (and I can assure you C2 works with SP3)

    Ashley will be able to tell you more.

  • QuickGridMovement.capx

    This is one implementation, just to give you the idea.

    Also I didn't use WASD as I have an AZERTY keyboard, and WASD is truely a pain with it.

    Nothing beats the arrow and always think about internationalization of your application if you want to hit a large audience.

  • As seen in the last blog entry

    hen you click preview or export, the HTML5 exporter converts your project in to HTML, javascript and PNG images. It generates all the necessary code for your game to play on a web page. It also launches a local HTTP server to work around browser security restrictions.

    Do you use a local server (like wamp or xamp) or something to help you make websites localy ?

    From what I know there is a local server by default in Windows 7, and I think Ashley relies on it for the previews.

    At worse, try to uninstall C2, redownload it and reinstall it. Maybe your first download got screwed at some point (it happens).

  • I don't see any line, neither in C2 or in FireFox on preview. Both Sprite and tiledbackground work as expected.

    Have you tried to reopen the texture in the tiledbacgkround object ?

    It feels like it is repeating the image on the top instead of repeating it on the bottom.

    Post the .capx in which you have the error too please, to see if it can be reproduced.

  • Well be more specific about what you are willing to do.

    As it, it has little meaning.

    Do you want to "teleport" your sprite from a tile to another ?

    Do you want to see it actually move ?

    Will you use keyboard ? Mouse ?

    There are several topics already about making a sprite move.

    This one shows a lot of possibilities, and switching from mouse to keyboard is a good learning exercise.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads