Not signed in (Sign In)

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    I want you guys to make a machine that creates a terrain that's unquie. Be creative! Good luck!-----------------
    hello? hello? the green box is after me
    •  
      CommentAuthorBioManiac R2 (Moderator)
    • CommentTimeFeb 28th 2015
     
    hmmm... interesting challenge, but I think you need to be a bit more specific on what the terrain is for?
    •  
      CommentAuthorMathdude314 (Advanced Member)
    • CommentTimeFeb 28th 2015 edited
     
    Here's a simple routine, although to the inexperienced it may seem complex.
    EDIT: Gaah, I keep forgetting to actually POST the design! While I'm forgetful, let me make sure source is enabled:
    Source enabled



    I also made a simple car... but it gets stuck...
    -----------------
    If less people are active, that will only make for even less activity. Start making those designs!
    Currently working on a one-round no-elimination quick RP game...
  2.  
    K.... The terrain is for a car race, which the car you also got to make.-----------------
    hello? hello? the green box is after me
    •  
      CommentAuthorKinkzoz
    • CommentTimeFeb 28th 2015 edited
     
    I tried to make a car, then removed the wheels and made a flying stick. Lovely

    <World app_id="COIN" version="210" key="PtiNdYEGAC1BA2PK" author_name="" author_homepage="" share_source_code="1" permit_publishing="1">
    <Preferences>
    <Preference name="app_background_color" value="0x00ffffff"/>
    <Preference name="scene_grid_cell_width" value="50"/>
    <Preference name="scene_grid_cell_height" value="50"/>
    <Preference name="link_line_color" value="0x00000000"/>
    </Preferences>
    <Scenes>
    <Scene key="wDd0AAAAAC1BA2PK" name="Default Scene">
    <Settings>
    <Setting name="ui_flags" value="273"/>
    <Setting name="play_bar_color" value="0x00606060"/>
    <Setting name="viewport_width" value="500"/>
    <Setting name="viewport_height" value="500"/>
    <Setting name="zoom_scale" value="1"/>
    <Setting name="camera_center_x" value="250"/>
    <Setting name="camera_center_y" value="250"/>
    <Setting name="world_left" value="0"/>
    <Setting name="world_top" value="0"/>
    <Setting name="world_width" value="5000"/>
    <Setting name="world_height" value="500"/>
    <Setting name="background_color" value="0x00dddda0"/>
    <Setting name="build_border" value="1"/>
    <Setting name="border_color" value="0x00606060"/>
    <Setting name="infinite_scene_size" value="0"/>
    <Setting name="border_at_top_layer" value="1"/>
    <Setting name="border_left_thinckness" value="10"/>
    <Setting name="border_top_thinckness" value="10"/>
    <Setting name="border_right_thinckness" value="10"/>
    <Setting name="border_bottom_thinckness" value="10"/>
    <Setting name="gravity_acceleration_magnitude" value="196"/>
    <Setting name="gravity_acceleration_angle" value="90"/>
    <Setting name="right_hand_coordinates" value="0"/>
    <Setting name="coordinates_origin_x" value="0"/>
    <Setting name="coordinates_origin_y" value="0"/>
    <Setting name="coordinates_scale" value="0.02"/>
    <Setting name="ci_rules_enabled" value="1"/>
    <Setting name="auto_sleeping_enabled" value="1"/>
    <Setting name="camera_rotating_enabled" value="0"/>
    <Setting name="initial_speedx" value="1"/>
    <Setting name="preferred_fps" value="25"/>
    <Setting name="pause_on_focus_lost" value="0"/>
    <Setting name="physics_simulation_enabled" value="1"/>
    <Setting name="physics_simulation_time_step" value="0.04"/>
    <Setting name="physics_simulation_quality" value="0x00000803"/>
    <Setting name="physics_simulation_check_toi" value="1"/>
    <Setting name="support_all_mouse_events" value="0"/>
    <Setting name="remove_pinks_on_mouse_down" value="1"/>
    </Settings>
    <Entities>
    <Entity id="0" entity_type="213" x="-53" y="127" scale="1" flipped="0" r="0" visible="1" alpha="1" enabled="1" active="1" event_id="0" input_condition_entity_index="-1" input_condition_target_value="1" assigner_indices="" external_action_entity_index="-1">
    <LocalVariables>
    <Variable name="Terrain Width" class_type="0" value_type="3"/>
    <Variable name="Bump Spacing" class_type="0" value_type="3"/>
    <Variable name="Not Complete?" class_type="0" value_type="1"/>
    <Variable name="Point List" class_type="0" value_type="30"/>
    <Variable name="X Position" class_type="0" value_type="3"/>
    <Variable name="Y Position" class_type="0" value_type="3"/>
    </LocalVariables>
    <CodeSnippet name="">
    <FunctionCalling function_type="0" function_id="25" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="Sets the width of the terrain. The world is 5000 pixels wide, so 100 meters."/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="300" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="100"/>
    </InputValueSources>
    <OutputValueTargets>
    <ValueTarget type="2" variable_space="3" variable_index="0"/>
    </OutputValueTargets>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="25" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="Sets the spacing of the bumps. (2.5 meters = 125 pixels)."/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="25" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="WARNING WARNING WARNING! Do not set to 0 or negative, or else Flash Player will crash! Really."/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="300" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="2.5"/>
    </InputValueSources>
    <OutputValueTargets>
    <ValueTarget type="2" variable_space="3" variable_index="1"/>
    </OutputValueTargets>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="25" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="Creates an array to store all the vertices."/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="84" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="0"/>
    <ValueSource type="1"/>
    </InputValueSources>
    <OutputValueTargets>
    <ValueTarget type="2" variable_space="3" variable_index="3"/>
    </OutputValueTargets>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="25" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="Add the starting corners: (0, 10), the terrain, and then (100, 10)"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="300" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="0"/>
    </InputValueSources>
    <OutputValueTargets>
    <ValueTarget type="2" variable_space="3" variable_index="4"/>
    </OutputValueTargets>
    </FunctionCalling>
    <FunctionCalling function_type="2" function_id="0" comment_depth="0">
    <InputValueSources>
    <ValueSource type="2" variable_space="3" variable_index="4"/>
    <ValueSource type="2" variable_space="3" variable_index="3"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="300" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="10"/>
    </InputValueSources>
    <OutputValueTargets>
    <ValueTarget type="2" variable_space="3" variable_index="5"/>
    </OutputValueTargets>
    </FunctionCalling>
    <FunctionCalling function_type="2" function_id="0" comment_depth="0">
    <InputValueSources>
    <ValueSource type="2" variable_space="3" variable_index="5"/>
    <ValueSource type="2" variable_space="3" variable_index="3"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="26" comment_depth="0">
    <InputValueSources/>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="25" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="We keep going until we run out of room."/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="170" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="1"/>
    </InputValueSources>
    <OutputValueTargets>
    <ValueTarget type="2" variable_space="3" variable_index="2"/>
    </OutputValueTargets>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="38" comment_depth="0">
    <InputValueSources>
    <ValueSource type="2" variable_space="3" variable_index="2"/>
    <ValueSource type="1" direct_value="1"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="25" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="Creates a random position. You can change this to your liking"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="381" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="6"/>
    <ValueSource type="1" direct_value="8"/>
    </InputValueSources>
    <OutputValueTargets>
    <ValueTarget type="2" variable_space="3" variable_index="5"/>
    </OutputValueTargets>
    </FunctionCalling>
    <FunctionCalling function_type="2" function_id="0" comment_depth="0">
    <InputValueSources>
    <ValueSource type="2" variable_space="3" variable_index="4"/>
    <ValueSource type="2" variable_space="3" variable_index="3"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="2" function_id="0" comment_depth="0">
    <InputValueSources>
    <ValueSource type="2" variable_space="3" variable_index="5"/>
    <ValueSource type="2" variable_space="3" variable_index="3"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="26" comment_depth="0">
    <InputValueSources/>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="25" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="Move forward"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="306" comment_depth="0">
    <InputValueSources>
    <ValueSource type="2" variable_space="3" variable_index="4"/>
    <ValueSource type="2" variable_space="3" variable_index="1"/>
    </InputValueSources>
    <OutputValueTargets>
    <ValueTarget type="2" variable_space="3" variable_index="4"/>
    </OutputValueTargets>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="209" comment_depth="0">
    <InputValueSources>
    <ValueSource type="2" variable_space="3" variable_index="4"/>
    <ValueSource type="2" variable_space="3" variable_index="0"/>
    </InputValueSources>
    <OutputValueTargets>
    <ValueTarget type="2" variable_space="3" variable_index="2"/>
    </OutputValueTargets>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="39" comment_depth="0">
    <InputValueSources/>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="26" comment_depth="0">
    <InputValueSources/>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="25" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="Add the final vertex, then stop and create the shape"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="2" function_id="0" comment_depth="0">
    <InputValueSources>
    <ValueSource type="2" variable_space="3" variable_index="0"/>
    <ValueSource type="2" variable_space="3" variable_index="3"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="2" function_id="0" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="10"/>
    <ValueSource type="2" variable_space="3" variable_index="3"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="25" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="Set the vertexes of the polygon"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="1569" comment_depth="0">
    <InputValueSources>
    <ValueSource type="1" direct_value="1"/>
    <ValueSource type="2" variable_space="3" variable_index="3"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    </CodeSnippet>
    </Entity>
    <Entity id="1" entity_type="12" x="-61.6666666667" y="210.333333333" scale="1" flipped="0" r="0" visible="1" alpha="1" enabled="1" active="1" draw_border="0" draw_background="1" border_color="0x00000000" border_thickness="0" background_color="0x00606060" background_opacity="100" border_opacity="100" ai_type="0" enable_physics="1" collision_category_index="-1" is_static="1" is_bullet="1" density="5" friction="0.1" restitution="0.2" is_sensor="0" is_hollow="0" build_border="0" sleeping_allowed="1" rotation_fixed="0" linear_velocity_magnitude="0" linear_velocity_angle="0" angular_velocity="0">
    <LocalVertices>
    <Vertex x="-9.33333" y="-26.3333"/>
    <Vertex x="-8.33333" y="27.6667"/>
    <Vertex x="17.6667" y="-1.33333"/>
    </LocalVertices>
    <BodyTexture module_index="-1"/>
    </Entity>
    <Entity id="2" entity_type="11" x="124.5" y="158" scale="1" flipped="0" r="0" visible="1" alpha="1" enabled="1" active="1" draw_border="1" draw_background="1" border_color="0x00000000" border_thickness="0" background_color="0x005555ff" background_opacity="100" border_opacity="100" ai_type="1" enable_physics="1" collision_category_index="-1" is_static="0" is_bullet="1" density="5" friction="0.1" restitution="0.2" is_sensor="0" is_hollow="0" build_border="1" sleeping_allowed="1" rotation_fixed="0" linear_velocity_magnitude="0" linear_velocity_angle="0" angular_velocity="0" round_joint="0" round_corner="0" corner_eclipse_width="0" corner_eclipse_height="0" half_width="73.5" half_height="7">
    <BodyTexture module_index="-1"/>
    </Entity>
    <Entity id="3" entity_type="10" x="124" y="152" scale="1" flipped="0" r="0" visible="1" alpha="1" enabled="1" active="1" draw_border="1" draw_background="1" border_color="0x00000000" border_thickness="1" background_color="0x005555ff" background_opacity="100" border_opacity="100" ai_type="-1" enable_physics="1" collision_category_index="-1" is_static="0" is_bullet="1" density="5" friction="0.1" restitution="0.2" is_sensor="0" is_hollow="0" build_border="1" sleeping_allowed="1" rotation_fixed="0" linear_velocity_magnitude="0" linear_velocity_angle="0" angular_velocity="0" radius="13.8924" appearance_type="0">
    <BodyTexture module_index="-1"/>
    </Entity>
    <Entity id="4" entity_type="60" x="125" y="157" scale="1" flipped="0" r="0" visible="1" alpha="1" enabled="1" active="1" collide_connected="0" connected_shape1_index="-1" connected_shape2_index="-1" breakable="0" anchor_index="5" enable_limits="0" lower_angle="-30" upper_angle="30" enable_motor="1" motor_speed="-3600" back_and_forth="0" max_motor_torque="10000000000"/>
    <Entity id="5" entity_type="100" x="125" y="157" scale="1" flipped="0" r="0" visible="1" alpha="1" enabled="1" active="1"/>
    </Entities>
    <EntityAppearingOrder entity_indices="0,1,2,3,5,4"/>
    <BrotherGroups/>
    <CollisionCategories default_category_index="-1"/>
    <CollisionCategoryFriendPairs/>
    <SessionVariables/>
    <GlobalVariables/>
    <EntityProperties/>
    <CustomPackages/>
    <CustomClasses/>
    <CustomFunctions>
    <Function key="YQl-AAAAAC1BC_at" time_modified="0x002d410cecab" name="Push Number Into Array" x="270" y="201" design_dependent="1" package_indices="">
    <InputParameters>
    <Variable name="The Number" class_type="0" value_type="3" initial_value="0"/>
    <Variable name="The Array" class_type="0" value_type="30"/>
    </InputParameters>
    <OutputParameters/>
    <LocalVariables>
    <Variable name="length" class_type="0" value_type="3"/>
    </LocalVariables>
    <CodeSnippet name="">
    <FunctionCalling function_type="0" function_id="86" comment_depth="0">
    <InputValueSources>
    <ValueSource type="2" variable_space="2" variable_index="1"/>
    </InputValueSources>
    <OutputValueTargets>
    <ValueTarget type="2" variable_space="3" variable_index="0"/>
    </OutputValueTargets>
    </FunctionCalling>
    <FunctionCalling function_type="0" function_id="102" comment_depth="0">
    <InputValueSources>
    <ValueSource type="2" variable_space="2" variable_index="1"/>
    <ValueSource type="2" variable_space="3" variable_index="0"/>
    <ValueSource type="1" direct_value="1"/>
    <ValueSource type="2" variable_space="2" variable_index="0"/>
    </InputValueSources>
    <OutputValueTargets/>
    </FunctionCalling>
    </CodeSnippet>
    </Function>
    </CustomFunctions>
    </Scene>
    </Scenes>
    <WorldVariables/>
    <DataSaveVariables/>
    <CommonSceneGlobalVariables/>
    <CommonSceneEntityProperties/>
    <Images/>
    <ImageDivisions/>
    <AssembledModules/>
    <SequencedModules/>
    <Sounds/>
    </World>


    EDIT: Someone help i am stuck how do you embed-----------------
    (°ω°)
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeFeb 28th 2015
     
    @Kinkzoz
    Use the play code. ^^-----------------
    Orange is my favorite number.
    •  
      CommentAuthorBioManiac R2 (Moderator)
    • CommentTimeFeb 28th 2015
     
    @Mathdude please, please, please, please, for the love of all things CI, make your designs more viewer-friendly... please.....

    examples1



    notice the - speed adjuster - scale adjuster - and it moves on it's own !!

    example2



    notice - speed adjuster - scale adjuster - and it works!!
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeFeb 28th 2015
     
    Lol. xD I have to agree with Bio. MAthdude, your designs... well... yeah...
    Just do what Bio says.-----------------
    Orange is my favorite number.
    • CommentAuthorXyuzhg (Moderator)
    • CommentTimeFeb 28th 2015 edited
     
    Here's a terrain generation algorithm based on the midpoint displacement method:


    EDIT: I rewrote this completely using Perlin noise with cosine interpolation instead. This has the added benefits of increased control of resolution and other terrain parameters, easy application of guide polylines as a rough template for the terrain, and innate smoothness/more realism.

    Example: a mountain
    -----------------
    Hopefully PA is inconsistent.
  3.  
    Nice job everybody!-----------------
    hello? hello? the green box is after me
    •  
      CommentAuthorTheDudeFromCI (Advanced Member)
    • CommentTimeMar 1st 2015
     
    Wow, Xyuhgz! That's awesome! Can you post the perlin noise function in the ware thread? (Along with your spline curves function.) Those are very, very useful functions. It would also take quite a while to replicate.-----------------
    Orange is my favorite number.
    •  
      CommentAuthorBioManiac R2 (Moderator)
    • CommentTimeMar 1st 2015
     
    ...... I was going to post something yesterday... but Xyuzhg takes the cake
  4.  
    Lol. XD-----------------
    hello? hello? the green box is after me