Asmodean's Forum Posts

  • Worked for me, but may be I understand the problem not entirely.

    https://drive.google.com/file/d/1U5rNB3f1WWBTfkGgYh_HNTTsnbLDQY_5/view?usp=sharing

    Edit: No, you are right. It works only the first time clicking. That's strange.

    Edit 2: I think you have a race condition. If I delete the wait-actions in the Virus-Event it seems to work. But if I trigger those events only once I get only one Player. So it seems the Advanced Permutation takes longer than one tick.

    But it's nearly impossible for me to debug the whole program because of the waits.

    I would try to replace the waits and make the advanced permutation not in the 'set text'. But if this works I don't know.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You don't set your Virus and Virus_Players variable in touch -> button_simulate to 0.

    So it will fire the events 188, 189 ... even if the correct event to set virus und virus_player are not triggered.

  • I don't know if that is what you want, but there is an YT Example:

    https://editor.construct.net/#open=youtube-api

    If you click on the iFrame in the Editor you can put in an URL in the properties on the left side.

    Use https://www.youtube.com/embed?max-results=1&controls=0&showinfo=0&rel=0&listType=user_uploads&list=YourChannelName
    
    For Example:
    https://www.youtube.com/embed?listType=user_uploads&list=ScirraVideos
    

    And that should! playing the newest Video of the Channel.

  • There is a follow behavior, maybe it's easier to use that.

    There is an example:

    https://editor.construct.net/#open=follow-behavior

    And the entry in the manual:

    https://www.construct.net/en/make-games/manuals/construct-3/behavior-reference/follow

  • Although it's not mentioned I just naturally understood it to be the case

    The problem is that if I create a sprite I can set the position. This is not possible if the sprite is created. This is inconsistent.

    If you use 'set position' in 'on start of layout' the object will move at the start to the position that is set in the Editor. I don't think that this is so obvious where the problem is.

    And set position is a basic action not an extra behavior, if it doesn't work with 'Tile Movement' it could be confusing.

  • I stumbled over my second strange behavior that isn't a bug but is nowhere mentioned.

    The first was that events in groups are sub-events. This should be mentioned, otherwise it could to lead to hard to find bugs.

    The second is that 'set position' does not work with the tile movement. It took me some time to figure out why my sprite act so strange.

    It's mentioned here: https://github.com/Scirra/Construct-bugs/issues/7426

    but not in the manual.

  • There is probably a better solution, but it seems to work:

  • It think you are looking for ObjectTypeName

    ObjectTypeName

    The name of the object type for the given object. For example Sprite.ObjectTypeName will return "Sprite". When used as a family expression, this returns the name of the actual object type, never the name of the family itself.

    https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/common-features/common-expressions

  • This makes stuff that resets on the next top level event (picking of newly created instances, wait for previous) a bit of a pain.

    Thanks fedca. That is what I thought. It should be mentioned in the manual, otherwise it could lead to confusion.

  • Can someone confirm that? I had some strange behaviors of events in a group, but not outside of a group.

    Tagged:

  • Construct has a Video-Plugin.

    https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/video

    Where you can set the playback rate

    Set playback rate

    Set how fast the video playback proceeds, as a multiplier of its original speed. That means 1 is the original speed, 2 is twice as fast, 0.5 is half as fast, etc.

    or jump to a specific time

    Set playback time

    Set the video playback time to a specific time in seconds (i.e. seek to the given time). Due to the way video encoding technologies work, the video may only be able to seek close to but not exactly on the specified time.

    You can test it all by yourself in the free version.

  • Try: Set value at (objectsLeft-1,0) to 1

    Arrays have zero based Index. If you set the size of an Array to 3 you have Index 0,1,2.

    And I wouldn't use set size in a loop, I would use push in an empty Array (width=0, Height=1, Depth=1)

  • JavaScript can safely represent integers up to 9007199254740991 = 25^3-1

    In JavaScript, all numbers are stored in a 64-bit floating-point format (IEEE 754 standard). With this standard, large integer cannot be exactly represented and will be rounded. And because Construct 3 is JavaScript that limit applies here too.

  • I think if the tool is 'none' there will be no minifying. It was a shot in the dark. It was one change in the update to 385 (Update Closure Compiler (used for minifying) to v20240317)

    I would make a Bug-Report:

    https://github.com/Scirra/Construct-bugs