LittleStain's Recent Forum Activity

  • You could create two families.. the one you want to check and the one you want to check against..

    objects can be part of more than one family..

    The X,Y you want to check should be relative to another object, right?

    Or would you like to check each X,Y in your layout every tick? (that sounds cpu-intensive)

  • Would is overlapping at offset work?

    inversed offcourse..

  • I guess what you are looking for is persist behaviour:

    https://www.scirra.com/manual/161/persist

  • you set checklevelpaint to 1 after the tiles are created

    spawnarray is global, so it keeps the instance variable at 1

    so when the layout is revisited the tiles are not created again.

  • Complete list of variables:

    Global variables: can be either strings (text) or number (available in all layouts)

    Local variables: can be either strings (text) or number (available in a certain part of an event sheet)

    Instance variables: Can be either strings (text), number or boolean (true,false) (available for objects)

    You can decide the name of the variables yourself and choose which type of variable you'd like it to be..

  • If you are using multi-touch you should specify which touch instance is touching which object and on touch end check both object and touch instance to make sure the right event is triggered..

    Although if the other touch instances should overwrite the on touch end, this shouldn't be a problem..

    If the subevent (or second condition) of on any touch end is an is touching object - the object is specified..

  • You could use the function object and put the events in there..

    Then for each sprite call the function..

    you could call the function with parameter choose(1,..) and use that param to set the direction instead of an instance variable..

  • Check the collision-polygon of your player..

    If the player is animated check every frame..

    Even better would be to use a square sprite with the behaviour and pin the animated sprite to it..

    If you already have done this all we can´t help without seeing your capx..

  • layout Main 1 doesn't have an event-sheet attached, that's the issue..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Should work, if it is set up the way you say..

    Is the event sheet these events are on connected to the layout?

    If it is and you can't figure out what's wrong please share your capx so we can have a look..

  • You can have 8 directions simulate control left, right, up and down..

    You only have to create the conditions for it..

    for example:

    Give the chap instance variable movement (number)

    every random(1,5) seconds

    for each chap

    • set chap variable movement : choose(1,2,3,4,5,6,7,8,9)

    for each chap

    • chap variable movement = 9

    -- chap 8 direction simulate control up

    -- chap 8 direction simulate control right

    • chap variable movement = 5

    -- chap 8 direction simulate control left

    I used 1 to 9 so you can easily compare them to the numbers on the numpad..

  • You could use the 8-directions behaviour

    • in the properties set angle = no

    and set your character mirrored through events..

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies