R0J0hound's Forum Posts

  • To destroy the first picked "box" Sprite use "SOL":

    SOL.box.Destroy()

    To destroy all the picked "box" Sprites:

    for obj in SOL.box:
        obj.Destroy()

    "SOL" stands for Selected Object List.

  • If you put the whole level grid into an array you can set it up to just create invisible collision tiles around the player, and when you switch the collision tiles can be created in the empty space.

    http://dl.dropbox.com/u/5426011/examples6/negativeSpace2.cap

  • Would this work?

    Pull global('file') out of the quotes and just combine it with &.

    AppPath & "GameFolder2\" & global('file')

  • I looked at XAudio2.csx with Dependency Walker and it needs c:\windows\system32\XAPOFX1_1.DLL. That dll is normally installed when updating directx, but putting it in the same folder as the exe should work.

  • There are probably some dll files he needs installed. When you get the error open 4.csx in a text editor and search for "csx", that should give you the actual plugin name.

  • Ashley

    There are two bugs this exposes:

    1. The collision position is not updated when setting an object's position to another object's hotspot.

    commonace.js line 107

    2. If the "push out at angle" action is used I get a grey preview in firefox. The error console said ux and uy were not declared.   

    behaviors\custom\runtime.js line 349

    Edit:

    Found another bug, the angle used with "push out at angle" needs to be converted to radians.

    With those fixed, the example should work better.

  • The mouse has a higher priority than an application, so it's possible to move off the window and click before the mouse can be clamped. A solution is to force the mouse to the center of the window and just move a sprite when the mouse moves. That is only needed when dragging, otherwise the mouse should be free to move as normal. I also implemented drag n drop with events since the behavior uses the actual mouse position.

    http://dl.dropbox.com/u/5426011/examples6/Custom%20drag%20drop.cap

  • There is no built in way but you can do it with just a few events, no large look up table needed.

    http://dl.dropbox.com/u/5426011/c2/decimalHex.capx

  • 1. Create two objects of the same type.

    2. Give the first object a instance variable.

    3. go to the event sheet and add event.

    4. select the object that doesn't have an instance variable and select "compare instance variable".

    It says "<none, add instance variable first>", so far so good.

    5. Click back twice and select the object that does have an instance variable.

    6. Select "compare instance variable" and a check failure occurs:

    ---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    Returning NULL instance variable

    Condition: instance_var != NULL

    File: Projects\Parameters.cpp

    Line: 279

    Function: class InstanceVariable *__thiscall EventParameter::GetInstanceVariable(void) const

    Build: release 56 (32-bit) checked

    Component: Construct 2 IDE

    (Last Win32 error: 0)

    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.

    ---------------------------

    Abort   Retry   Ignore   

    ---------------------------

  • Construct 2 uses visual event sheets, no code knowledge is required.

    http://www.scirra.com/construct2/event-editor

    Unless you're talking about making plugins, then it would be javascript.

    http://www.scirra.com/forum/javascript-plugin-and-behavior-sdk-documentation_topic44005.html

  • Set the font to "Pet Me 64" instead of "PetMe64" and it works. The set font goes by the font's internal name not the font's file name.

  • Another method not mentioned is using an array expression:

    {1, 5} at (random(2)+1)

    Some other examples:

    {"spring", "summer", "fall", "winter"} at (random(4)+1)

    {1, 1, 2, 3, 5, 7, 12} at (random(7)+1)

  • Here's another way to scale the array by setting the large array by sampling from the small array.

    + System: Trigger once

    + LargeArray: For Each element

    -> LargeArray: Set index (LargeArray.CurrentX, LargeArray.CurrentY) to AsteroidArray (int((LargeArray.CurrentX-1)/4)+1, int((LargeArray.CurrentY-1)/4)+1)

  • No need to use distance, just place a spite where you want to shoot from and set it's angle at what you want to shoot at. Then increase the width until it collides with a wall.

    http://dl.dropbox.com/u/5426011/c2/laser.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have the Audiere object set to be global. Global objects are not destroyed at the end of a layout so they exist on all following layouts. You also have a instance of the Audiere on each level, you only need one instance on the first layout since it's global.

    As it is now there will be 13 Audiere objects playing on the 13th level, which will be be noisy.