Xombul's Forum Posts

  • I am trying to figure out how to do a collapse game.

    At the moment when I click a block i clear that single block.

    But clearing should only happen if the picked/clicked block is connected to at least two other blocks in the same colour. How can I test that?

    And if its going to destroyed all the connected blocks in the same color should also be destroyed. How would you guys do that?

    Here is my innitial setup

    [attachment=0:31xlh7lo][/attachment:31xlh7lo]

    please do some happy hacking

  • This really helps... but how about a way to launch an external image editor from the internal image editor. That is where i feel im missing it the most.

    Anyway... I love all these hidden features and #6 is a helpfull improvement

  • The platform behaviour in Construct is amazing. For platform games I would prefer Construct over Gamemaker.

    Yes Gamemaker can play in a browser. But I believe that is a very simple activeX plugin. I think you can fairly easy create ActiveX plugins for any application so I see no reason why Construct would not be able to do the same (in a hopefully near future).

    The main reason that I pick Construct over Gamemaker is that the Construct layout editor is so much better than the GameMaker room editor. Its things like layers and locking objects. In general editing levels in Construct seems so much easier than in gamemaker.

    The event action system in Construct is fairly strong but when it comes to more complicated stuff i would so much prefer a scripting system like GML. (or even better python )

    The forum support for Construct is very good. The autors of Constructs seems to be very active on the forum and on releasing new versions of Construct. This is another top reason to pic Construct.

    In gamemaker Objects are more flexible in the way that you have to create the behaviours your self. In Consturct there are a lot of build in behaviours... but they are limited and you can not easily extend Construct with new behaviours. I wish there was a way of creating new behaviours using python.

    At the moment I actually prefer Gamemaker over Construct for most tasks. But Construct has a lot more potential in the future.

  • Even if I don't see it it i guess it will still be there. That means it will be tested for collisions? And it will influence the instance count. I would so much prefer that Objects in genereal could exist without instances.

    And just moving instances out of site is ugly... when I write program from scratch I never have unused instances.

    But... anyway, ... if its not possible to have objects without instances it would help to be able to hide them

  • I am not able to select hide in the context menu. And even if its hidden. I still feel that i would be a bit messy. I guess I would prefer to have zero instances in some way instead of hiding one instance

  • I have an Object like bullets that are only to be created dynamicly when shot by a cannon.

    At the moment I need to have at least one instance of those in the layout. I just thinks it looks messy even if its off screen. So can I have it appear only in the Object panel?

  • You need to look a bit on picking and conditions

    http://apps.sourceforge.net/mediawiki/construct/index.php?title=Conditions

    If you dont have any picked instances the action will work on all instances. But some events picks one or more instances. The following action will then only affect the picked instances.

    For example if your event condition is "is X overlapping with Y : destroy X"

    will only destroy instances of X that are actually overlapping with a instance of Y

    (if you set the pick options correctly)

    in pseudo code it is will behave a bit like this.

    for each pair (x, y) where x is an instance of X and y is an instance of Y.

    if x and y is overlapping:

    destroy x.

    Cheers

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I still haven't found a way to access instances in python.

    How do I do something with all Sprite's ? (not just one Sprite)

  • I can only move one instance of the balls using python.

    Any ideas on how to fix this?

    All I am doing at the moment is

    Ball.X += 1

    http://www.scirra.com/phpBB3/download/file.php?id=399

  • [attachment=0:2uo2za7y][/attachment:2uo2za7y]

  • I'm not sure what you mean by overlap.

    It sounds like your trying to create a network system for paths, so you might have p1, p2, p3, p4, and p1 connects to p2,p3, and p2 connects to p4, and p3 connects to p4, etc. And you want to store the information about connections?

    This much like what i have in mind. Im just dont know how to set it up

  • for instance in Sprite

    instance.X += 1;

    Looks natural. But I cant get it to work. I hope that im doing something wrong

  • If I add a hash table to a Object "Node"

    How can I fill that table with all the Objects that overlaps.

    (it could be a list and not a table)

    What I want to do is to build a graph of connected nodes and be able to do different graph traversals of that graph. So beginning in one Node how do i do a depth first search and a breadth first search.

    Normally in other languages I would pick a starting node and then recursively visit all of its neigbours. (depth first) Any idea on how to do this?

    And any sugestions for the breadth first search?

    And finaly.... preferably all these different traversals should be done in one frame. I have one implementation that visits the nodes one by one but only one in each frame.

    I hope the question is interesting enough to generate som answers

  • Thanks for trying to help me out.

    The quetion is not so much on the actual movement but on how to access individual object instances and all object instances. In Python that is.

    I am able to find a For each Sprite in python.

    It would have been natural for the python part to be able to iterate over all Sprites using something in the lines of

    for instance in Sprite
        instance.X += 1
    [/code:38rp9999]
    
    or something like
    [code:38rp9999]Sprite[index] += 1[/code:38rp9999]
    
    Another option would be to use the event picking mechanism and execute the python script as part of the action. Would that be possible. I think it would be a nice option to have the python script as an action of some event.
  • How do I iterate through all instances of an Object

    if I do

    Meteor.X += 1

    only one of my Meteors moves.

    And as someone mentioned in another post. Picking support in python. Do something with all picked objects or... pick and unpick objects.