Xombul's Recent Forum Activity

  • 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

  • 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]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • I tried to build the plugin SDK examples with VS-express 2008 but unfortunately it depends on ATL which is only available in the non free versions. Its a shame since I don't think the plugins depends heavily on ATL or MFC functionality. Removing these dependencies would make plugin writing much more acessible to the wide public.

Xombul's avatar

Xombul

Member since 2 Feb, 2009

None one is following Xombul yet!

Trophy Case

  • 15-Year Club

Progress

15/44
How to earn trophies