Tibeytan's Forum Posts

  • Your welcome, but I'm not sure to understand the effects wanted with these pauses. You want the balloon to decrease before it reaches its maximum size? I think you can try something on your own with my capx. I gave you the main mechanic, but testing is always the better to really understand.

  • Hi ! Seems to work pretty nice. Keep up the good work, I'll look into that other game.

  • Glad it helped JonnyBrove! Keep it up!

  • IGDev, the screen does not match exactly what I suggested. I'll give you a commented capx this evening to show you.

    EDIT : As promised, here is the capx : balloon_problem capx

    I voluntarily used actions Set Width and Set Height instead of Set Size, for you to read it more easily. If you have any questions about what I did, ask.

  • Hi IGDev!

    I can't enter your capx cause I'm on the stable version, but I'll try without it.

    First, your balloon needs the Timer Behavior.

    Then, you should try something like this :

    On start button clicked : Start ballon.Timer "growTimer", with a duration of float(growtime.text)
    
    Every tick if ballon.Timer.Duration("growTimer") > 0 : Set ballon width (resp. height) to maximum width (resp. height) * balloon.Timer.TotalTime("growTimer") / balloon.Timer.Duration("growTimer")
    
    On balloon.Timer("growTimer") :  Start balloon.timer "decreaseTimer" with duration of float(decreasetime.text)
    
    Every tick if ballon.Timer.Duration("decreaseTimer") > 0 AND if width & height not inferior than minimum width and height : Set ballon width (resp. height) to maximum width (resp. height) - (maximum width (resp. height) * balloon.Timer.TotalTime("decreaseTimer") / balloon.Timer.Duration("decreaseTimer"))[/code:1eo1g3ua]
    
    When the ballon grows, you can use a simple cross multiplication based on the progression of the timer. When it decreases, since the TotalTime still grows, you must substract the result of the cross multiplication from the maximum size. Do not forget to prevent the ballon to have a width and height of 0, by setting their minimums.
  • Alright! First, you can remove the Platform behavior from your box, because you won't use it for up and down movements. Then, that's how I would advise you to proceed :

    Condition : Prekryti is overlapping Box
                          Condition : Player.X < Box.X  AND Right Arrow is down
                                               Action : Set Box.X to Player.X + distance(Player.X,0,Box.X,0)
                          Condition : Player.X > Box.X  AND Left Arrow is down
                                                Action : Set Box.X to Player.X - distance(Player.X,0,Box.X,0)
                          Condition : Player.Y < Box.X  AND Down Arrow is down
                                                Action : Set Box.Y to Player.Y + distance(0,Player.Y,0,Box.y)
                          Condition : Player.Y > Box.Y  AND Up Arrow is down
                                                Action : Set Box.Y to Player.Y - distance(0,Player.Y,0,Box.y)[/code:3f5cn4jx]
    
    That should work.
  • No problem, I'm not a native English either.

    So, you can move the box using events, but you don't manage to make the player push and pull the box? Is that it? Would it be possible to see how you programmed your events?

  • Hi chcteacher !

    I'd like to help you, but I have difficulties to understand this sentence :

    I can not, however, advise that box that I want to pull the pull and I as a player to him could bring all sides and move in that direction.

    Regards

  • I tried something like this once. To put it simply, I used "camera landmarks", that allowed me to control the camera considering the relative player's position. Here is some sketch to illustrate the concept.

    The red area represent the OriginalWindowWidth. It is clearly NOT wide enough but... well. Let's forget about that.

    We consider the player comes from the left.

    Red blocks are camera landmarks. When the player is out of the red area, the camera is following the player. When the player enters the red area which begins at cameraLandmarks.X - cameraScreenWidth / 2, the camera stops (to indicate the end of this layout part has been reached). Then, when the player cross the green line (go to another part of the layout), the camera moves to cameraLandmarks.X + cameraScreenWidth / 2. Etc...

    That was kind of messy actually, but the fact that you point out the problem make me think I should try to make it properly.

    Hope that gave you some inspiration at least.

  • yes, all of those On start of layout triggers are fired on the start of the layout, and I'm sure they all fired at the same time because they are triggers. Triggers don't follow the "top to bottom" rule, the actions in the triggers are read when the event that fired the trigger happen (in this case, start of layout)

    In fact, they follow the top to bottom rule, but within the moment the event is trigger. In your example Mithrill, you can let the "On start of layout" events in the folders they belong, that is not going to cause any problem. The first will be triggered, then once all its actions are done, the second will etc... I share your opinion on the matter : That clearly will be more readable.

  • I think Daggio is closer to what you look if I understood correctly the problem. Here is a screenshot of what you could do :

    Hope that's what you're looking for!

  • Looks more like a list of personnal preferences to me. There are several interesting points though. Thanks for sharing!

  • Hi !

    I just bought this tool, and it goes beyond what I expected! Currently making a visual novel, I'll find it really useful.

    Thanks and nice work!

    EDIT : Seems like I encountered some issue with the injection feature. When I inject an array (Items from your demo in this case) in a new empty project, the firstRowIsColumnName instance variable is always set on false, whether the corresponding checkbox is checked or no. Did I miss something?

    Thanks for your answer!

  • Hi everyone! Here is my first theme done with fisholit's color tool. I called it : Justice_Night !

    EventSheet Font : Consolas Normal 9pt

    <?xml version="1.0" encoding="utf-8" ?>
    <c2theme>
        <eventsheet_background>3086101</eventsheet_background> 
        <event_background>5316886</event_background> 
        <event_background_sel>9829804</event_background_sel> 
        <event_border>2494217</event_border> 
        <event_border_sel>4979827</event_border_sel> 
        <event_number>16777215</event_number> 
        <event_number_sel>3395861</event_number_sel> 
        <event_heirarchy_line>15775033</event_heirarchy_line> 
        <event_heirarchy_line_sel>14478294</event_heirarchy_line_sel> 
        <condition_background>4927285</condition_background> 
        <condition_background_sel>12517065</condition_background_sel> 
        <condition_border_sel>9829804</condition_border_sel> 
        <condition_object_text>15581540</condition_object_text> 
        <condition_object_text_sel>2894892</condition_object_text_sel> 
        <condition_separator>15775033</condition_separator> 
        <condition_separator_sel>2814549</condition_separator_sel> 
        <condition_text>16777215</condition_text> 
        <condition_text_sel>2894892</condition_text_sel> 
        <invalid_condition_text>1645052</invalid_condition_text> 
        <action_background>5778465</action_background> 
        <action_background_sel>12517065</action_background_sel> 
        <action_border_sel>2814549</action_border_sel> 
        <action_object_text>9365476</action_object_text> 
        <action_object_text_sel>4079166</action_object_text_sel> 
        <action_separator>9823997</action_separator> 
        <action_separator_sel>2814545</action_separator_sel> 
        <action_text>9829884</action_text> 
        <action_text_sel>4079166</action_text_sel> 
        <link_text>2302777</link_text> 
        <group_background>5012946</group_background> 
        <group_background_sel>7077002</group_background_sel> 
        <group_border>5052171</group_border> 
        <group_border_sel>2814549</group_border_sel> 
        <group_text>3086101</group_text> 
        <group_text_sel>2894892</group_text_sel> 
        <inactive_group_text>5131854</inactive_group_text> 
        <inactive_group_text_sel>8172914</inactive_group_text_sel> 
        <group_description>539777</group_description> 
        <group_description_sel>4079166</group_description_sel> 
        <inactive_group_description>10492690</inactive_group_description> 
        <inactive_group_description_sel>8172914</inactive_group_description_sel> 
        <expand_box>8916863</expand_box> 
        <expand_box_sel>6579300</expand_box_sel> 
        <expand_box_border>5704017</expand_box_border> 
        <expand_box_border_sel>6579300</expand_box_border_sel> 
        <include_background>3086101</include_background> 
        <include_background_sel>9829805</include_background_sel> 
        <include_border>8403765</include_border> 
        <include_border_sel>2814549</include_border_sel> 
        <include_text>12146768</include_text> 
        <include_text_sel>4079166</include_text_sel> 
        <eventvar_background>9823997</eventvar_background> 
        <eventvar_background_sel>9829805</eventvar_background_sel> 
        <eventvar_border>2804210</eventvar_border> 
        <eventvar_border_sel>2814548</eventvar_border_sel> 
        <eventvar_text>2894892</eventvar_text> 
        <eventvar_text_sel>2894892</eventvar_text_sel> 
        <eventvar_description>9737375</eventvar_description> 
        <eventvar_description_sel>6579300</eventvar_description_sel> 
        <comment_background>4607175</comment_background> 
        <comment_background_sel>12517064</comment_background_sel> 
        <comment_border>0</comment_border> 
        <comment_border_sel>2814545</comment_border_sel> 
        <comment_text>16777215</comment_text> 
        <comment_text_sel>2894892</comment_text_sel> 
        <insert_mark>15775033</insert_mark> 
        <exp_error_underline>1645052</exp_error_underline> 
        <exp_stringliteral>2039712</exp_stringliteral> 
        <exp_number>10420383</exp_number> 
        <exp_operator>16646192</exp_operator> 
        <exp_object>33025</exp_object> 
        <exp_behavior>879269</exp_behavior> 
        <exp_bracket>13158600</exp_bracket> 
        <exp_badbracket>10395389</exp_badbracket> 
        <exp_text>6842472</exp_text> 
        <exp_selected_text>16777215</exp_selected_text> 
        <exp_background>16777215</exp_background> 
        <exp_selection>16683078</exp_selection> 
        <exp_caret>0</exp_caret> 
        <layoutview_background>11644331</layoutview_background> 
        <layout_border>0</layout_border> 
        <layoutview_collisionpoly>1645052</layoutview_collisionpoly> 
        <debugger_breakborder>1645052</debugger_breakborder> 
        <debugger_breakbackground>13225470</debugger_breakbackground> 
    </c2theme>[/code:28hf93na]
    
    [img="http://image.noelshack.com/fichiers/2016/39/1475401167-theme-justice-night.png"]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi ! Thank you for this very nice tool! I think I would never have made a theme without it.