chrisbrobs's Forum Posts

  • Ok gotcha,

    The framerate is dropping because the image is being loaded continually. Adding a "trigger once" to your condition will fix it so that the image is loaded only once every time picture overlaps frame. You could also just use "on collision" instead of "is overlapping". Also the wait actions are not necessary it will work fine without them.

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

    Already tried all the above before i intoduced the frame?

    It wont load the first image(takes about 3 tries)

  • This is Brilliant. <img src="smileys/smiley2.gif" border="0" align="middle" />

    I admit to being a weirdo !

  • You want to be able to drag the images only on the frame object, right?

    This should do it:

    + Text: [negated] Text is "" (case: No)

       + System: frame at (MouseX,MouseY)

       -> ImageManipulator: Load image Text.Text

       -> ImageManipulator: Resize to 128 x 128

       -> ImageManipulator: Copy image to sprite picture

       + System: Always (every tick)

       -> Text: Set text to ""

    I haven't found a way to get the file location before the file is dropped, so you can't have the image previewing before the drop.

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

    Thanks for the reply

    "You want to be able to drag the images only on the frame object, right?"

    No........The frame object doesnt need to be there. I just added it just to help me solve my problem?

    Basically i want to do the following :

    1, Run the app

    2, Drag a image file into the app window.

    3, On drop, the image manipulator loads and displays the image.

    I created the following events:

    + picture: picture overlaps frame

    -> Wait: Delay 100 ms

    -> ImageManipulator: Load image Text.Text

    -> Wait: Delay 100 ms

    -> ImageManipulator: Resize to 128 x 128

    -> Wait: Delay 100 ms

    -> ImageManipulator: Copy image to sprite picture

    ON DROP..... the image loads OK...........................BUT THE FRAMERATE DROPS (AND STAYS) AT 20 FPS.

    Adding " -> frame: Destroy " as a FINAL EVENT stops the Framerate drop (it must stop a loop ?)

    Am i making sense ?

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

    "I haven't found a way to get the file location before the file is dropped, so you can't have the image previewing before the drop"

    This part not a problem.

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

  • To create the hinge between ball and ball2, you could use:

    + ball: On collision between ball and ball2

    -> ball: Create hinge to ball2 (image point 0) with stiffness 90

    -> ball: Disable physics collisions with ball2

    (You might not need the last line?)

    Heres an example

    Cap

    These events are not needed, but i added them help with the visual.

    + MouseKeyboard: On key Right arrow pressed

    + ball: overlaps ball2 : offset (1,1)

    -> ball: Add force (ball[Physics].VelocityX+240, ball[Physics].VelocityY-240)

    + MouseKeyboard: On key Left arrow pressed

    + ball: overlaps ball2 : offset (1,1)

    -> ball: Add force (ball[Physics].VelocityX-240, ball[Physics].VelocityY-240)

    Hope this helps

  • You could use:

    + MouseKeyboard: On key Right arrow pressed

    -> ball: Add force (ball[Physics].VelocityX+240, ball[Physics].VelocityY-240)

    + MouseKeyboard: On key Left arrow pressed

    -> ball: Add force (ball[Physics].VelocityX-240, ball[Physics].VelocityY-240)

    1, If your ball is using 'Physics', you need to apply the same behaviour to the floor(and/or walls)...or they wont collide.

    2, Also set the floor to 'Imovable' to stop it moving.

    3, If your getting too much bounce, just playaround with the values.

    Example cap

    Good luck

  • The only 3D program I use is 'Cybermotion 3d designer' (3ds and obj)

    I dont think you can create 3d objects with Spriteforge, from what iv'e read, it makes 2d sprites from 3d models (you can do this with Cybermotion)

    Blender imports and exports Wavefront obj models that Construct can use.

  • the one that represent the grass and the one that represent the water...

    Solution:

    Dont give the 'grass' and 'water' sprites the 'platform' behaviour.(this is used for the player)

    For wall and floors, you only need to enable the attribute 'solid'(a tick box in sprites properties)

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

    Edit

    These are the event lines you should use (after removing the 'platform behaviour from the water and grass)

    + player: overlaps grass : offset (0,6)

    + System: Trigger once

    -> player: Spawn object grassparticles on layer 1 (image point 1)

    + player: overlaps water : offset (0,6)

    + System: Trigger once

    -> player: Spawn object waterparticles on layer 1 (image point 1)

    Heres the CAP file:

    link

  • Which 2 sprites are you refering to ?

  • Could be done in a number of different ways....Have you got a screenshot you could post?

  • I wondered if anybody could look at the above problem ? (posted 9/Aug)

    Could really do with a solution.

    Thanks in advance <img src="smileys/smiley19.gif" border="0" align="middle" />

  • Your best bet would be to post your cap file, or a screenshot of the events ?

  • The link doesnt work!

    Script editor....Are you refering to Python ?

    Edit.....I googled it and found this...?

    your link

  • You could use:

    + player: On collision between player and ground

    + System: Trigger once

    -> player: Spawn object Particles on layer 1 (image point 0)

  • Try Construct 3

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

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

    I like this. Lots of possibilities for household item interaction.

    If you don't make a game out of this, you're mad <img src="smileys/smiley2.gif" border="0" align="middle" />

    zen

    I did create it for a 3D game based on 'Ooglies'(CBBC) but didnt think it would appeal ?

    I might continue work on it now, i've already created loads of other 3d models that i didnt include in this cap.

    I will put a level together with the other stuff and post it....let me know what you think?

  • This example Illustrates how to add simple shadows and reflections to 3D objects.

    <img src="http://dl.dropbox.com/u/22173473/3dshad.png" border="0" />

    dl.dropbox.com/u/22173473/3Dshadows.rar

    (It's not a game !)