Wastrel's Recent Forum Activity

  • 3DGS,

    Speed = Distance/Time, so you need to determine the distance traveled by the cannon ball in a specific period of time, like every tick.

    Here is a modified capx: dl.dropbox.com/u/38038537/Speedofball_modified.capx

    This was just a quick and dirty example, and I'm sure there must be a more elegant solution (perhaps even built-in).

  • simply...he says.

    Yeah, "simply." It's hard for geniuses like Kyatric to remember what it's like to be as lowly as us.

    <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Dobandon, I think it's a really fun and challenging game. I am not worthy, because I had to finally give up on level 3 and pay attention to my wife. <img src="smileys/smiley4.gif" border="0" align="middle" />

    I noticed I kept getting stuck on the edges of the blocks, which a few times messed up the flow of the game and caused me to die. I haven't worked with platformers in C2, so I don't know if that is correctable.

    A good effort all around!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • R0J0hound: Great example, R0J0.

    Now can you animate someone opening that can after bouncing around so much? <img src="smileys/smiley17.gif" border="0" align="middle" />

  • It looks really nice, TastyBytes. Did you make all of the art yourself?

  • That will be a nice advertisement for C2! You should get an Advertising Executive forum badge for your efforts! <img src="smileys/smiley4.gif" border="0" align="middle" />

  • rexrainbow: Oh, I see what you mean now. Yeah, I was considering implementing something like that with events, but it's much cleaner the way you did it. Do you care if I keep it as part of the plug-in?

  • Thank you, sir! This is exactly what I needed for a current project.

  • Nice plug-in! I think it will be very useful.

  • SullyTheStrange: that's the very the reason I started working on this. :D

    rexrainbow: Are you saying to not have a condition, but to only have the "Start to scan key" as an action, then capture off of that? I was thinking having Capture key as a top level condition might be too restrictive.

    I must have missed your MP plug-ins before. Are they actually extending the existing plug-ins? I had wanted to do that with the Keyboard plug-in and just add the capture function. I will check them out.

    I will also take a look at moving the capture function down to the action level.

    Thanks!

  • <font color=red>This plug-in has been removed. It is no longer necessary, due to the addition of key code functionality to the built-in keyboard plug-in.

    If you require a copy of the plug-in to be able to open a project, PM me. Otherwise, please use the built-in keyboard plug-in.</font>

    <font size="4">Plug-in: KeyCode</font>

    Capture key from keyboard and return hardware scan code, Unicode code, and Unicode character.

    Installation

    • Extract the contents of the zip file into \Construct2\exporters\html5\plugins
    • Folder name: wastrel_keycode

    Features

    • Capture the hardware scan code and the Unicode code/character for a key from the keyboard

    Usage

    <font face="Courier New, Courier, mono">- <font color=red>(DEPRECATED) KeyCode -> Capture key : System -> Set value {variable} = KeyCode.Code</font>

    • KeyCode -> Capture key : System -> Set value {variable} = KeyCode.ScanCode
    • KeyCode -> Capture key : System -> Set value {variable} = KeyCode.UnicodeCode
    • KeyCode -> Capture key : System -> Set value {variable} = KeyCode.UnicodeChar
    • {Some/empty condition} : Start capture
    • {Some/empty condition} : End capture</font>

    Conditions

    • Capture key: Captures the next keystroke from the keyboard and places the hardware scan code into the ScanCode expression; the Unicode code into the UnicodeCode expression; and the Unicode character into the UnicodeChar expression. Use System -> Set value to set a variable to the key code value. The Capture key condition is enabled using the Start capture action, and is disabled with the End capture action.

    Actions

    • Start capture: Enables the Capture key condition to capture the next keystroke. Capture key will continue to capture keystrokes until End capture is called. Generally, Start capture will be called with a specific condition (e.g button press) to capture one keystroke (e.g. to set key mappings). Start capture can also be called using an event with an empty condition, for continuous key captures.
    • End capture: Disables the Capture key condition.

    Expressions

    • <font color=red>(DEPRECATED) Code: An integer value which contains the key scan code, set by the Capture key condition. Default = 0.</font>
    • ScanCode: An integer value which contains the key scan code, set by the Capture key condition. Default = 0.
    • UnicodeCode: An integer value which contains the Unicode code, set by the Capture key condition. Default = 0.
    • UnicodeChar: A string value which contains the Unicode character, set by the Capture key condition.

    Examples

  • Wastrel: 0 AND 0 is 0, not 1! Otherwise, good table :)

    Then my table is neither truthful NOR logical! <img src="smileys/smiley4.gif" border="0" align="middle" />

Wastrel's avatar

Wastrel

Member since 21 Sep, 2011

Twitter
Wastrel has 2 followers

Trophy Case

  • 13-Year Club

Progress

13/44
How to earn trophies