Jongf7's Forum Posts

  • 14 posts
  • To learn myself how to use CS2 I remade my first even game. I created the original in 2001 and that was only playable in DOS. I did a windows remake in 2011 and now an online version in CS2.

    You can play the current build of the game here:

    vejita.clay.io

    I still have some translating to do and include a 'how to play' section.

    I also have a question for you guys. I plan on releasing the game on FaceBook, I already have it running in my developer account.

    The original game is based on the DragonBall Z saga, will this be a problem? Is it better if I change the namens to make this less obvious?

  • Paradox, That makes sense.

    I can make the player stay on screen that way, but it does not solve the problem that you easily click outside of the layout and loose focus :)

    nimos100, that is what I was thinking, but you can not set the mouse coordinates in CS2.

  • In my game you control the player with the mouse. You can only move left and right and shoot.

    So I have code like this:

    Player.y = 400

    Every tick:

    Player.x = mouse.x

    But what a lot of my play testers do in their enthusiasm is move the mouse to far, and thus get out of the layout. When this happens you can no longer shoot or move, witch most of the time lead to death.

    I wanted to fix this by adding code like:

    Every tick:

    Mouse.y = 400

    if mouse.x < 0 mouse.x = 0

    if mouse.x > 640 mouse.x = 640

    But you can't set the mouse coordinates.

    Is there an other way to make sure you don't click outside of the layout?

  • Thanks, that is what I was looking for. The second option sounds very good also, so I'll have a look into that.

  • In my first game I only had one level. There were several layouts in the game (opening cinematic, high score screen etc.), and for each layout I had an event sheet.

    Now for my next game I plan to make several levels, all made out of the same basic components. So I was wondering if it is possible to use one event sheet to control all the level layouts?

  • I have not used pathfinding in CS2 yet, but I think you can try to find a path from inside the castle to a point outside. When the wall is completed you should get some 'no possible path' output from the pathfinder.

  • I have now used Clay.io to get online highscores, works very well and is easy to implement with the tutorials.

    Those highscores also work with Facebook login within Facebook :)

    you can test the game here:

    vejita.clay.io

    It is not really released on facebook yet, mainly because I have to translate a lot to English first.

  • Thanks, I will see if I can find the video's!

    They way I understood it was that the database thing was handled by Facebook. But as said in my opening post, I haven't even come to the score part yet, Facebook gives me problems already when I am only trying to login.

  • Little bump hoping some one who knows what to do will read my post. I Hope that's ok.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, thank you, I will try again in a few days. (and i'll try your game as soon as it works again <img src="smileys/smiley1.gif" border="0" align="middle" /> )

  • I uploaded my game to the Scirra Arcade and it bugs when changing layout. When I test the game in C2 or export the game to HTML5 there is no problem at all.

    Any idea as to what might be wrong?

    I can't link to the games (not allowed to place links on this forum), but you can find the arcade as 'challenge of vejita'. And I linked to the HTML5 game in the comments (exact same export).

  • I know there are a lot of Facebook posts already, and I read most of them, but I'm still stuck.

    I followed the Facebook tutorial and have a game running on facebook, no problems so far.

    Now I want to implement Facebook functionality (I want to have Facebook high scores in the future).

    But it fails on the login.

    I use the Facebook program that comes with construct 2 and have the App ID and secret set up.

    Now it shows me the login button and its active (so the object is ready).

    Now when I press the button an almost blank Facebook pup-up comes up, it only has a 'loading wheel'. It disappears again within half a second or so.

    After this the login button is deactivated and nothing happens any more.

    Is this a known problem? And what would be the solution?

    Thanks in advance!

  • I would like to believe I did a similar thing, but your method works perfectly, thanks!

  • Hello all,

    Just wrote a whole story to see it destroyed by the forum because there was a link in it <img src="smileys/smiley19.gif" border="0" align="middle" /> no way to get my original question back. So here we go again..

    I'm new to Construct 2 and trying to recreate an old game I once made in Div-gamestudio.

    I had a link to the start of my game here, but that's not allowed, so I don't know how to show it to you. So I hope you can help me with just the explanation of my problem.

    In the game you shoot rocks that fall from the top of the screen. All the rocks get a random size (random width and height) when they get created.

    Now when I shoot a rock, I want to know the width and height of this particular rock. I want to use this to make the explosion bigger for bigger rocks and smaller for smaller rocks. Also I want to make the point you get and powerups dependent of the size of the rock you shot.

    I don't seem to get this to work. When is set the size of the explosion to the self.height and self.width of the rock (in the event that checks the collision of the rock with the bullit) the values that are returned don't seem to be of the rock that is destroyed.

    I hope I made my problem clear, thanks in advance!

    *now copy my text so I don't loze it again <img src="smileys/smiley1.gif" border="0" align="middle" />

  • 14 posts