kittiewan's Recent Forum Activity

  • Why are you using a textbox to display text? It is used to enter text, for example to get player's name. Notice that you can click with the mouse inside the textboxes and they get focus so the player could change the score. I don't think that is what you want.

    Normally you'd use the Text plugin, which is in the same group as Sprite.

    Then if you want to display more than one value in the text object, do something like:

    Text.Text-> "Home: " & Score1 & NewLine & "Away: " & Score2

    Where Score1 and Score2 are global variables (although you could use two instance variables created on the text object, which would be referred to as Text.Score1 and Text.Score2.)

    I put these change in your project.

    While I don't think you'll be using them, I modified your textboxes since they had several problems. (They are hovering up in the sky for now.) The instance variables were type Text, so you couldn't add to them. This is what was giving you big problems, I think. I don't know why it wasn't generation an error. Something to look into. (EDIT: I checked and Add to for a string concatenates to the end of the string.) Anyway, I changed them to numbers and the addition works fine. Then to modify the text of the textbox you were doing strange things with the locations of the quotes relative to the variable names and the & (I think because you couldn't get anything to work.) Also you only need to set the font properties once, so I moved that to on start of layout, instead of every tick.

    Here is the modified project.

    TestScoreBoard.capx

    Looks like it will be a fun game.

  • sqiddster

    Really? I was sure I'd heard of that game someplace...Oh. My bad. I was thinking of deferential and integral caucuses--some sort of fantasy no doubt. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I agree with you that there is a bug--more specifically, some sort of unexpected interaction between two behaviors--but I don't agree it has to do with the bullet's set angle action. According to the manual:

    Set angle

    If set to No, the behavior will never change the object's angle. If set to Yes, the behavior always sets the object angle to the angle of motion.

    This is not what you seem to expect. You seem to expect the opposite--that if set to No, the bullet's angle of motion will never be affected by the object's angle. That is, for the bullet to ignore the sprite's angle when determining motion.

    Meanwhile, using an animation instead of rotate to make the boomerang might be a reasonable workaround.

  • talca1991

    We don't really know anything about your experience developing games or using C2. I would start with something relatively simple and well known like a variation of Mastermind (aka deduction) or Simon (memory game, play back the music notes) or Rush Hour (a car puzzle game). It makes it easier for people to help you because they know what the game is. When finished, if you are happy with the result, share it on the arcade as an example game for others to learn from.

    Then go for a more unique game.

  • Differential calculus platformer

    Why differential? IMO integral makes a far more interesting platformer.

  • When you want to go from one layout (level) to another, use the System-> goto layout action. If you want to restart a layout, just go to the same layout. I'm trying to think if I have any examples of switching layouts posted on drop box...

    Ah! Yes. Check out this thread. There are three examples I link to. In one example a new level is generated each time in the same layout, and in another you go to one of 6 or so different layouts. The third one is sort of a combination, and I think the best one of the three. But there are many ways to accomplish tasks in C2.

    Creating levels and transitioning between them

  • I don't think the bullet behavior is making your sprite rotate so turning off rotation in the bullet behavior shouldn't do anything in this case. I think it is just the rotate behavior that is causing the sprite to rotate. To test that out I set rotation speed to 0 on the sprite on the top left, but made the bullet angle of motion change every tick. The sprite does not rotate at all. The top right sprite has the same change to bullet angle plus the rotate speed set to 180. The one in the top center is your origninal.

    BulletAngleOfMotionAnim.capx

    (I misunderstood what your problem was at first--didn't see it was a bug report and thought you were asking for help-- and created an indendent rotation through animation and just left it there. You can see it on the bottom three sprites. (The one on the right has rotation of the bullet, rotation from the rotate behavior and rotation through animation.)

  • Nice start! I love adventure games.

    1) I agree that you should get rid of the Next button. It is extremely annoying.

    2) There is a typo in the conversation with Nic -- change:

    stop waisting my...'hic'...-ing time...

    to

    stop wasting my...'hic'...-ing time...

    3) When Brat tries to do something that doesn't work will you provide some feedback? For example, talk to the plane does nothing. Brat could say something touching to the plane like "Good-bye, old friend." or "I don't make a habit of speaking to inanimate objects."

    Hope to see more!

  • Hooray!

  • Look in the object's actions for the Bullet actions group, and under that choose Set angle of motion and provide the desired angle.

    Also the expression Sprite.Bullet.AngleOfMotion where Sprite is the name of your bullet object lets you get the bullet's current bullet angle of motion.

    <img src="https://dl.dropbox.com/u/57899112/BulletAngleOfMotion.PNG" border="0" />

  • I don't think you are reading what I am saying or looking at the example I took the time to provide. In the example there is only one sprite with the bullet behavior. Let me repeat: There is only ONE(1) SPRITE with the bullet behavior!

    However, that single sprite object has TWO (2) bullet behaviors on it. I know it isn't as easy as the solution you WANT, but that doesn't exist. And even though this one sounds weird, it DOES work, and does not allow other objects to pass through the walls even temporarily.

    Here. Let me draw you a picture:

    <img src="https://dl.dropbox.com/u/57899112/DoubleBullet.png" border="0" />

    This is a perfect example of why you should post YOUR example so we can help you with YOUR specific case, rather than have to try to guess what you want and have you tell us we didn't guess right.

    EDIT: Sorry if I came off as a bit ticked. I don't mean to. If you still have questions, post a simple capx showing what you are trying to do. It will save everyone a lot of time.

  • Glad my tutorial was helpful!

    Depending on how you want the cards to fan out, you might also want to rotate them slightly. This is easiest if the card origin is somewhere on the bottom (either bottom left, right or center.)

kittiewan's avatar

kittiewan

Member since 13 Nov, 2010

None one is following kittiewan yet!

Trophy Case

  • 14-Year Club
  • x3
    Coach One of your tutorials has over 1,000 readers
  • x3
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

17/44
How to earn trophies