RamPackWobble's Recent Forum Activity

  • Because of being quite sad I ran the above function 10,000 times and it returned

    1-914 times (9%)

    2-3070 times (31%)

    3-6016 times (60%)

    so it appears to work ok...

  • do it the other way round...

    10,30 and 60% chances ?

    call function with 10 and 30 as parameters

    function picks a random number (X)

    set function to return 3 (ie the random number is less than 100)

    then if X < (Parm(1)+Parm(0) (ie x<40) set function to return 2

    then if X<(param(0) (X<10) set function to return 1

    <img src="https://dl.dropboxusercontent.com/u/143636437/examples%20for%20web/Ashampoo_Snap_2014.02.14_09h47m47s_005.png" border="0">

    and the capx

  • <img src="https://dl.dropboxusercontent.com/u/143636437/examples%20for%20web/Ashampoo_Snap_2014.02.14_08h27m49s_002.png" border="0" />

    for example

    I call a function with a set of x and y coordinates (0,10,45,67) (upper left x,upper left y, lower right x, lower right y) would be a rectangle with (0,10) as upper left and (45,67) as lower right.

    these are sent as "0?10?45?67"

    in the function ("fcCreateSpriteInArea") I find the x and y positions using "tokenat"

    (from the manual - "tokenat(src, index, separator)

    Return the Nth token from src, splitting the string by separator. For example, tokenat("apples|oranges|bananas", 1, "|") returns oranges.")

    so now all I need to do is create sprite at (random (x1,x1)),random(y1,y2)

    I also called the function with choose("0?0?540?100","540?0?640?380","0?100?100?380","0?380?640?480")

    so the choose just picks 1 of the 4 rectangle coordinates I want to create a sprite in

    I also used fade to make the sprites fade in pause and fade out (to destroy)

    Clear as mud ? <img src="smileys/smiley1.gif" border="0" align="middle" />

    any questions please use RamPackWobble as I will get a message to reply

    Good luck

  • Did you try removing physics ? (which would have taken you maybe a minute to test ?)

    The sliding has nothing to do with physics:

    <img src="https://dl.dropboxusercontent.com/u/143636437/examples%20for%20web/Ashampoo_Snap_2014.02.14_08h12m41s_001.png" border="0">

    Here is your game with physics removed.

    Note no wobble, no problem with top step and still sliding ?

    wizard game (with physics removed)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • beta download is at the bottom of this page

    see this post

  • Didn't work sadly.. <img src="smileys/smiley18.gif" border="0" align="middle">

    Appears to here ?

    As ArcadEd pointed out the Drag and drop behaviour will probably be better for you to use.

    edit - capx if you want ?

  • <img src="https://dl.dropboxusercontent.com/u/143636437/examples%20for%20web/Ashampoo_Snap_2014.02.13_21h14m21s_003.png" border="0" />

  • enemies.count<1

    (sub event) for 1 to 10 : spawn enemies

    here you go - quick example capx (r161)

  • also have a read through https://www.scirra.com/manual/134/performance-tips

  • try removing the physics behaviour from wizard and ice blocks - appears to fix problem. Physics and other movement behaviours don't play nice together.

  • Thank you rampack, you can send the CapX? the links are the wrong way :P

    The arrow can be taken out of the ball does not? :D

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

    "The arrow can be taken out of the ball does not?" Zen ? <img src="smileys/smiley5.gif" border="0" align="middle">

RamPackWobble's avatar

RamPackWobble

Member since 2 Feb, 2013

None one is following RamPackWobble yet!

Trophy Case

  • 11-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers

Progress

12/44
How to earn trophies