Ethan's Forum Posts

  • Not sure if its me doing something wrong as i'm new to functions.

    I have multiple instances of an object, each with a private value of either blue box or red box.

    When you click on one of these instances i want to create another object based on what type of private value it has which i've clicked on.

    I thought an elegant method would be to do -

    on object clicked > create object by name (funtion. return myfuntion)

    on funtion(myfunction)

    +instance priavate variable(object type)= "blue box" > return function (BlueBoxSprite1)

    on funtion(myfunction)

    +instance priavate variable(object type)= "red box" > return function (RedBoxSprite1)

    So the function compares the private value and if its a blue box it returns the blue blue box sprites name, and same for if its red.

    but i think the problem is when calling return functions in an expression there is no option to remember or forget picked objects, like you can do if it's just an action "call function".

    Is this right or have i got things wrong?

    Thanks.

  • yeah i always get those 2 lines mixed up.

  • I know we can add comments inbetween events, but It would be really great if we could also add comments inbetween the action lines of an event.

    Especially for when you are for example altering various variables in one event and want to remind yourself what each is for.

    Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank's for the update.

    Could you add an extra option to the drag and drop behaviour so 1 click activates and drags continuous and another click is needed to drop it?

  • me and my bitches-

    <img src="http://photos-d.ak.fbcdn.net/photos-ak-snc1/v376/3/46/560660496/n560660496_4715491_2595.jpg">

    Are you stroking your nipples?

  • 27, and going bald.

  • Can you please try to post in the right section of the forum?

    It's like you're just picking one at random and posting your questions.

    Thanks.

  • The box object.

    It does seem to work fine with sprites so far.

    Thanks.

    Any chance you can add pathfinding to the object too?

  • Construct crashes for me now when i use grid movement.

    Temp.exe has stopped responding.

  • Don't get bogged down with realism, it always spoils space games, you'll end up with huge universes with not much going on.

    Buch better to have a smaller universe with lots going on than a huge sparse one.

    Maybe split the game into zones, like solar systems, and have something interseting and unique in each, then allow people to travel between them.

  • Great update.

    Can you add pathfinding to the new grid movement please, and so we can move with mouse controls or code ourselves with events rather than keys.

    Thanks.

  • That was great. Thought the ending was funny.

  • I really like your pixel artwork. Will you ever do a tutorial on that?

  • Love the game, but i can't continue past the first level because after i encounter the ghost it just crashes.

  • Thanks.

    It doesnt have to be a complex 'does everything turnbased strategy object', just a simple pathfinding one that allows you to get the grid squares per step. It doesnt even have to include movements.