Re: seesaw

KZR wrote:

wow! this is it! don't change it anymore big_smile

I had nothing else in mind http://forum.thescubasite.com/winking/winking0001.gif, and thanks.

KZR wrote:

now it's time the 2 player version wink

First another version.
In this version, the ball not only up, but also goes to the other side of the seesaw.
the ball is deadly, the player must quickly to the other side.
sounds a bit vague, I know http://serve.mysmiley.net/ashamed/ashamed0004.gif

http://ssdw.nl/forum/getforumpic.php

Re: seesaw

KZR wrote:

or use 2 players instead of the ball?

sorry KZR, I see no possibility to make this sad .
I am now working on a new object.

http://ssdw.nl/forum/getforumpic.php

28

Re: seesaw

no problem. your seesaw still rules the way it is big_smile

https://image.ibb.co/kuSYrm/SD_sml.pnghttps://image.ibb.co/kHq8P6/SeD_sml.pnghttps://image.ibb.co/cJf8P6/LTot_W_sml.png

29

Re: seesaw

seesaw is incompatible with rev.334 apparently because of on_player_rect_collision having bad coordinates

the fixed code:

// ------------------------------------------------------------------------
// Created by Ssdw 
// Design by KZR
// Vesion 2.2
//
// This item is free (as in freedom) object for OpenSonic 0.1.4
// You can use this object for levels or other things, Enjoy!
// ------------------------------------------------------------------------


// ##################################################################################
// #                        seesaw simple                        #
// ##################################################################################

// seesaw 
object "SS_seesaw_simple_ground" 
{
    requires 0.1.4
    state "main" 
    {
    change_state "left"  
    }
    state "change_state"
    {
    change_closest_object_state "SS_seesaw_simple_ball" "move"
    change_state "right"
    }
    state "right"
    {
    set_animation "SS_seesaw_1" 1 
    on_player_rect_collision -32 -32 -30 0 "change_state_2"
    set_obstacle TRUE 340
    }
    state "change_state_2"
    {
    change_closest_object_state "SS_seesaw_simple_ball" "vall"
    change_state "left"
    }
    state "jump"
    {
    on_player_rect_collision 30 -32 32 0 "jump1"
    change_state "left"  
    }
    state "jump1"
    {
    bounce_player
    springfy_player
    set_player_yspeed -768
    set_animation "SS_seesaw_1" 0 
    on_timeout 0.1 "left"
    }
    state "left"
    {
    set_animation "SS_seesaw_1" 0 
    on_player_rect_collision 30 -32 32 0 "change_state" 
    set_obstacle TRUE 20
    }
 }

// seesaw Ball
object "SS_seesaw_simple_ball"
    {
    requires 0.1.4
    state "main"
    {
    set_animation "SS_seesaw_ball" 0
    }
    state "move"
    {
    move 0 -300
    on_timeout 0.4 "move_slow"
    }
    state "move_slow"
    {
    move 0 -100
    on_timeout 0.1 "down_slow"
    }
    state "down_slow"
    {
    move 0 100
    on_timeout 0.1 "down"
    }
    state "down"
    {
    move 0 300
    on_collision "SS_seesaw_simple_ground" "wait"
    }
    state "wait"
    {
    move 0 300
    on_timeout 0.048 "stop"
    }
    state "vall"
    {
    move 0 300
    on_collision "SS_seesaw_simple_ground" "stop"
    }
    state "stop"
    {
    change_closest_object_state "SS_seesaw_simple_ground" "jump"
    change_state "main"
    }
}
https://image.ibb.co/kuSYrm/SD_sml.pnghttps://image.ibb.co/kHq8P6/SeD_sml.pnghttps://image.ibb.co/cJf8P6/LTot_W_sml.png

Re: seesaw

Thanks smile , I will change that!

http://ssdw.nl/forum/getforumpic.php