R0J0hound's Recent Forum Activity

  • Do you have the Application property "Enable Scripting" checked? That property should only be used if using python. If you aren't using python and that's enabled then construct will crash if ~ 700 objects are created without running any python scripts.

  • After a few minutes of experimentation it would seem that with an "Eye Distance" setting of 500 that a sprite with ZElevation of 250 will appear twice the size it is when it's ZElevation of 0.

  • You can add attributes at runtime with the action "System" -> "Add/ Remove attributes from object". Be advised that trying to remove an attribute with that action does nothing as it is not implemented. Another idea if you use sprite objects is you can enable\disable collisions with the "set collision mode" action.

  • Here is a barebones example for making a ellipse window. All the required python files are included in "py.zip" so no python install is needed. Just keep "py.zip" in the same directory as the cap or exported exe.

    http://dl.dropbox.com/u/5426011/examples3/ellipseWindow.zip

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1.

    On the AI event sheet change event 4 change "Start of Layout" to "Timer equal to 0" and add a "For each npc_zefi_tier1ship" condition.

    + System: Timer is Equal to 0
    + System: For each npc_zefi_tier1ship
    + npc_waypoint_generic: Pick one at random
    -> npc_zefi_tier1ship: Move to npc_waypoint_generic 
    [/code:2vp89ioj]
    Also on event 7 remove the "Delay 2000 ms" condition as it causes all the enemy ships to be picked.
    
    2.
    The fixes for 1 pretty much fix 2.
    
    3.
    What PixelRebirth said.
  • To prevent going into the wall you could add a "overlapping at offset" condition to check for collisions before motion.

    + MouseKeyboard: Key Left arrow is down
    + Sprite: [negated] Sprite: overlaps "Solid" : offset (-1,0)
    -> Sprite: Set X to.X-1
    
    + MouseKeyboard: Key Right arrow is down
    + Sprite: [negated] Sprite: overlaps "Solid" : offset (1,0)
    -> Sprite: Set X to.X+1
    
    + MouseKeyboard: Key Up arrow is down
    + Sprite: [negated] Sprite: overlaps "Solid" : offset (0,-1)
    -> Sprite: Set Y to.Y-1
    
    + MouseKeyboard: Key Down arrow is down
    + Sprite: [negated] Sprite: overlaps "Solid" : offset (0,1)
    -> Sprite: Set Y to.Y+1
    [/code:31phvxjq]
  • Private variables in python are accessed much like with events.

    # This gets the value
    Sprite.Value('HP')
    # This sets the value to 22
    Sprite.SetValue('HP', 22)
    #This subtracts 1 from the value
    Sprite.SubValue('HP', 1)[/code:3nd2pf6i]
    
    Same deal with creating objects:
    [code:3nd2pf6i]# This creates a Sprite on layer 1 at 200,300
    System.Create('Sprite', 1, 200,300)[/code:3nd2pf6i]
  • Do you have Flash installed for Internet Explorer? The error you're getting means that it can't find Flash installed.

    Here's the link from the Adobe site to install Flash for Internet Explorer:

    http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax.exe

  • 1.

    List Boxes aren't drawn in DirextX, they are windows controls and are always drawn on top. I haven't used fraps so I can't help you there.

    2.

    This discussion describes how to make the window round in python with winapi calls:

    http://www.scirra.com/forum/viewtopic.php?f=3&t=7515&p=58466

    Making an arbitrary shaped window is possible but becomes more complicated and less readable.

    3.

    This is probably the best example for learning how to use the bone behavior:

    http://www.scirra.com/forum/viewtopic.php?f=8&t=2210

  • Welcome,

    Actions can be added after the event is created by left clicking + New Action at the right of the event.

  • The preview and exported project will think the DirectX update is installed if they can find D3DX9_39.DLL in the system path or the same directory as their EXE. The preview EXE is in a hidden temp directory "C:\Documents and Settings\UserName\Application Data\Scirra". Copy that dll to that directory and it should work.

  • The reason the the sound isn't playing is there is no XAudio2 instance on "Layout 3", even though the XAudio2 object is on "Layout 1" and has global enabled. Global doesn't mean it will exist on all layouts, it means that after an instance is created it will still exist when layouts are changed at runtime.

    A simple fix would be to create an XAudio2 object at the start of "Layout 3". It is also a good idea to check if there are any XAudio2 instances before you create another to prevent distortion caused by multiple instances.

    + System: Start of layout
    + System: CountMatching("XAudio2") Equal to 0
    -> System: Create object XAudio2 on layer 1 at (0, 0)
    [/code:3ldjpl9m]
R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 155 followers

Connect with R0J0hound