Wink's Recent Forum Activity

  • Khanz I don't remember any tutorials written on side scrolling specifically. But you might find some helpful links on this page:

    scirra.com/forum/how-do-ifrequently-asked-questions_topic45416.html

  • Ya, I didn't try it but it seemed like it might work. Did you try GenkiGenga's idea that sounds better than mine.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • delgado you could do something like:

        + bullet sprite-> On collision with (the sprite you want)

            -(The sprite you want)-> Set frame (The Frame you want)

  • Your welcome :) Sorry about sending you the fixed .capx. You still could do it yourself just quit looking at it, and follow what I wrote, and how to fix it.

    I had global variables set up , and so did you but you also had instance variables assigned to the Paddle_AI and they were Player_Score, and AI_Score. If you click on your Paddle_AI in the .capx you sent me you will see were you assigned them. For this method to work you would have had to assign Player_Score to the Player_Paddle, and AI_Score to the Paddle_AI.

    A pong game with an AI is not as easy to build as some experienced C2 users might lead you to believe. it is actually a little more of an advanced game. Don't worry about being confused at first we were all there, and some of us still are :) I'm glad to here that this isn't going to be the only game your going to build with C2. I would recommend you try Ashley's Beginner's guide to Construct 2 tutorial when you have some time. It will help clear all the confusion.

    I'm sure the Construct 2 suggesting where a problem is built in AI is on Ashley, and Toms list of things to do :D Just stick around and make some great games while your waiting.

  • Ok, The problems I found were just a few little mistakes but it is all working now. Here are the issues, and the steps taken to fix them:

    1. The reason all you could see was white and the dummy puck is because you had the "Get Ready" Layer 3 set to transparent "No" in the properties window. This is a easy mistake to make. This probably happened when you thought you had the background layer selected, it happens. So layer 3 was blocking out all the layers beneath it. When working with C2 it is a good practice to do your background layer first, and lock it you can always unlock it if you need to make changes.

    I set it to yes.

    2. You had instance variables both Player_Score, and AI_Score set to your Paddle_AI. This wouldn't have worked, and was not needed since you already had global variables set properly.

    I deleted both instance variables.

    3. You had the Paddle_AI Set Y to Mouse.Y when it should have been your Player_Paddle. Easy mistake its like making a typo. This wouldn't have worked since the Paddle_AI is your AI (Artificial Intelligence), and is using lerp to move.

    I changed it to Player_Paddle Set Y to Mouse.Y.

    4. You had:

          +Puck->On collision with Player_EndZone

               -System->Wait 5.0 seconds

       When it should have been:

          +Puck->On collision with Player_EndZone

               -System->Wait 0.5 seconds

       Another easy typo type mistake.

    5. After I got it all running good I noticed that your dummy ball, ball, and Play again button all had white backgrounds which just didn't look good.

    So I exported your sprites, and got rid of the whit backgrounds with Photoshop. Then I replaced those sprites with the cleaned up ones, cropped, added image points to your ball, and re-sized the ball's to look good. I hope you don't mind.

    Anyway here is your fixed .capx:

    https://dl.dropbox.com/u/43763487/Pongboy/pong.capx

  • I'm still here I just have to finish a few things here at work (deadlines), and talk to my boss so it will be a little while.

    Do you want the background color to be that green color you have selected or a different color?

  • I was just joking about the senior thesis thing before you know. I hope you didn't take it personally. I really don't care if you used the whole game for your class. Heck you can even sell or publish it if you want. But I do respect the fact that your trying to learn how to build it yourself.

    When I made that game there were no tutorials on most of the mechanics. It was a lot of trial and error but that is all part of being a developer. Sometimes you just got to sit back and think because rushing things can cause simple errors like typos witch can keep things from working as intended.

    I would really need to see your .capx to find the problem. Could you upload it to dropbox or something? If your worried about your artwork you could always send me the download link in my PM (Personal Message) box.

    To send me your .capx you first need to save your game as a single file by clicking on that little file icon in the upper left just above were it says properties in C2. Then follow this tutorial:

    Upload your game to Dropbox

    Except skip the part about exporting it as a game just put your .capx in the public folder some were in dropbox, and send me the link.

  • If you give it the mouse event a new window should open. Then select "on object clicked", and another window should open then at the bottom of that window click on the "object clicked" area, and you can select the object that you want.

    To set your background color you need to go to the layout, and select the layers tab in the middle right area of C2. Then click on the background layer, look to the left in the properties window, click on were it says background color, and a little drop down color picker should appear. Also in the properties window make sure that were it says "initially visible" visible is selected. When the background is black you should be able to see the white puck move. If you want your cursor to be visible all the time just delete were it says set "cursor to none".

    Are you trying to add parts of my game to a different game? Or are you just trying to rebuild it?

    If this isn't working for you could you post your .capx for me to look at?

  • Lol, I guess I should have commented the event sheet.

  • Ok, just ask when you need more help. I might not be able to reply right away I'm at work right now but I will keep checking this thread whenever I can.

  • I didn't use instance variables those are global variables. If you look at the top of the event sheet you will see global number AI_Score, and Player_Score. If you double click on them they will open , and you can change them if you need to.

    I'm not sure what your asking. What are you trying to do?

  • Sure no problem Pongboy. When its time for your senior thesis let me know, and you can look over mine then just copy it, and replace my name with yours. <img src="smileys/smiley36.gif" border="0" align="middle" /> Just kidding, one thing I just noticed that you might want to change is look in the objects window and click on Puck. Then look in the Pucks property window under the bullet behavior, and change set angle form yes to no. I made that game a while ago with an older version of C2, and I think one of the newer updates messed it up.

Wink's avatar

Wink

Early Adopter

Member since 13 Sep, 2011

None one is following Wink yet!

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies