Gumbo's Forum Posts

  • It will fall if you wait long enough because there is a micro-gravity which will pull it down sooner or later. But we know that this can be annoying so we have added two buttons for the next update of the game. One for "fast foreward" and one for "temporary gravity". We have also changed the physics from box2d to chipmunk to prevent a crash "later" in the game.

  • Hi,

    you can play our game "Balls vs Zombies" on Scirra Arcade here:

    https://www.scirra.com/arcade/shooting- ... bies-22620

    Have fun

  • Ah, you saved me! You're right, the position is not yet set in the onCreate event. So you can imagine the event as a kind of constructor but without parameters. I am creating my "myFont" Object at a later stage now.

  • Hi,

    I have this case which is driving me crazy:

    myEnemy | On created     |     System | Create object    myFont at (myEnemy.X, myEnemy.Y)
    [/code:39kng7lx]
    
    I create my "myEnemy" at a valid Position != 0 (let´s say at 25, 130) but... when "myFont" is created like shown above at myEnemy.X and myEnemy.Y it is created at 0, 0...
    I would expect the X and Y to be correct even in the "On created" event?
    
    Please...
  • That´s pretty much what I was looking for... thanks. I used groups before and even used the activate/deactivate function but it did not come into my mind.

  • Hi,

    the equivalent in pseudo code would be something like:

    method a
    {
        if (trigger)
        {
          return;
        }
    
        (...)Do something funky
    }
    
    method b
    {
        if (trigger)
        {
          return;
        }
        
        (...)Do something funky
    }
    [/code:2rxzhb32]
    
    This would be called "bad coding style" I guess. There must be a better way...
  • Hi,

    I am not sure what you mean. The event-sheet for this object has a lot of events and I want do "deactivate" all of them. I thought there would be a simple solution like "decouple the eventsheet from the object"

    greetings

  • Thanks but I´m afraid I misdescribed it. I did not mean the animation loop but the frame loop. The sprite eventsheet should be ignored and the sprite should remain at the last rendered animation frame (become "static"). Something like: "Exclude eventsheet but don´t kill the object".

    Anyone?

  • Hi,

    I want to exclude a sprite completely from the frame-loop in order to "freeze" is under certain conditions. Can it be done simply?

    thanks

  • I am so stupid...

  • Hi,

    I really need to search globally and not each event sheet... how can I do it?

  • Hi,

    I have an event sheet (lets call it "story_events") with some global variables on it. Now I want to move the global variables to another event sheet (lets call it "global_event_sheet") and import that into my first event sheet. The problem now is that once I cut the global variables every event using them will be deleted. How can I prevent that?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think you are trying to make a sprite a little bit bigger on selection (as a feedback that is has been selected). You can do this with the "Set scale" or the "Set size" action.

  • Hi,

    In order to create an object with "Create object" it has to have at least one instance in any of the layouts. So instead of inserting the object in each of my "level"-layouts I ended up with an "object-pool"-layout that contains one instance of each object I often create.

    Apart from this being a good idea or not I have a general problem: I want every object that I create with "Create object" to be scaled by a fixed factor without calling "Set scale" everytime. I thought I could set the size in the "object type properties" that are exposed when you select the object prototype but that has no effect.

    thanks

  • Yes I did. And I noticed something else. When I export the project as "HTML5 website" and let that run on the same machine from within the same browser the text is visible with the effect! When I start the same project from within Construct 2 I can´t see the text anymore.