nimos100's Recent Forum Activity

  • You can make combinations by adding several conditions, so if you want to make it so the character jump forward when Right arrow and top arrow is down, you can add 2 events, I guess you can use keycodes as well. Anyway here is how you can do it:

    Both event do the same, so making a function to handle the actual jump would be best. But If you are not sure how to use functions you can just copy/paste one to the other so they are the same.

    Event 1:

    On Right arrow pressed (Trigger)

    Key Top arrow is down

    Actions:

    jump forward right

    Event 2:

    On Top arrow pressed (Trigger)

    Key Right arrow Is down

    Actions:

    jump forward right

    Then you just make one for the left as well. The reason you make 2 for each side is just to make sure that the player doesn't have to be precise when wanting to jump forward. But you could probably get by just using the first event, if you don't care to much.

    Or you can make if so:

    Event:

    On Right arrow down

    On Top arrow down

    That would work as well and is probably the best way, as players are most likely moving when they want to jump anyway

  • Ahh ok cool

  • Problem Description

    Small user interface bug. Some functionality disappear if you do things in a certain way.

    Attach a Capx

    Not CapX related, as it can be done with a completely new project as well.

    Description of Capx

    Here is how to recreate it with some screenshots.

    1. Make a new group and select it and press "C" to add a new event. Select "On start of layout" and press "Done".

    2. Press "B" to add a blank event and add a new system event to it, while having the blank event selected and now the whole "Start & end" and "Save & load" category have disappeared.

    3. To get them back you have to delete the group and create a new one and add a blank event and now when you add the new system event they have returned.

    Steps to Reproduce Bug

      See above. Observed Result "Start & End" and "Save & load" category missing Expected Result That the categories were still there. Affected Browsers
      • Chrome: (YES/NO)
      • FireFox: (YES/NO)
      • Internet Explorer: (YES/NO)

    Operating System and Service Pack

    Windows 7

    Construct 2 Version ID

    r180

  • Cant you just make a game controller of some kind that keep track of which turn it is to move. And use this as an overall controller for all things. So if this variable "Turn = Player 3" then nothing else will trigger for any other player. And then in all your functions, events etc where you need to pick or do something with some units or whatever, you just make sure that you always check or pass the current player "Turn" into the function, or just read it from the game controller, so this value always match the player that is currently moving.

    I assume that all units/stuff in the game have a variable that indicate who they belong to. So if you make these match the "Turn" variable it should be fairly easy to always make sure that you select the correct units.

    I don't think you necessarily need to use arrays, it ofc depend on the game you are making. But it should be enough to just make one variable that you use to whenever you need to check the ownership of something.

    You could for instant make a small sprite called Faction, add it to a family and give it a owner variable and at the beginning of the game you spawn 4 of these for instant and set the owner as following:

    Owner = Player 1

    Owner = Player 2

    Owner = Player 3

    Owner = AI 1

    And you can then add to the family the variables that you need like INT:money, BOOL:Ally with player 1, BOOL: Ally with player 2 etc and you just switch these on off. Whenever something changes.

    Due to the Owner variable it should be fairly simple to select the correct faction:

    Faction.Owner = Turn.variable (From the game controller)

  • In that case I would destroy the video element at the start of layout, and create it whenever you need it. Which I do with all elements for that simple reason that you dont have things in the game that are not used, and to remove rogue objects that can all of sudden screw things up if you are not careful.

    So when the player trigger the TV and start playing the video you create the video object where it needs to be:

    Create video

    Video.set position = <X>, <Y>

    Video.source = "Video1"

    Video.Play

    Seen_video = 1

    Video.hasEnded

    Video.Destroy

    Subevent in video has ended:

    If Seen_video = 1

    Actions

    Set Seen_video = 0 Then it will not trigger again

    Go_to_map 2

    Another subevent in video has ended:

    If Seen_video = 2

    Actions

    Set Seen_video = 0 Then it will not trigger again

    Go_to_map 3

    [quote:2psyd3x0]This works fine in the first group of code in which it is used (it does detect the when the video ends), but then later, despite having

    set the video to a new source file, trying to read the Has ended property still seems to results in it returning a "True".

    You can check this really easy, if you in start of layout start video 1 then you make a video has ended and in here you tell it to play another video or the same video doesn't matter. And if it keeps playing you know that it works as it should. You ofc just have to make sure that your videos are not set to loop, which they shouldn't by default.

    [quote:2psyd3x0]Basically, why isn't this property reset to False when a new video file is selected for a given video object?

    Because its not a property that can be set, it is a trigger. It would be like wanting to set "On created" to true or false, its not how it works, it triggers every time a video has ended, and also why I think it was meant to have that little green arrow. It doesn't care which video file is selected, it triggers whenever that Video element is done playing a video.

  • The video "has ended" is just a trigger, so its not something that you set to true or false in that regards. But every time a video is done playing it will trigger what is in the video "as ended" , so unless you use some other variable to indicate what video "ending" you want your program to react to, it will react the same way to whether its the first video or the second video that is done playing.

    So you could make a counter that every time a video "has ended" you add one and as a sub event in the video "has ended" you check to see what this value is. And then you make the program do what it needs to do here.

    So first time when video 1 have played.

    Video_counter = 1

    IF Video_counter = 1 switch to map 2

    Then you play video 2 and add one more

    Video_counter = 2

    etc etc.

    Not 100% sure, but I think the Video "has ended" was actually intended to have the little green arrow, like "On created" "On destroyed" and so on, but might be a minor bug maybe.

  • You can write the XML to a file manually just like you would save anything to a file. You ofc just have to make sure as you write it that you follow the syntax for writing XML, so you can load it again

    I believe you can write the xml file with the Webstorage functionality

  • Yeah I expected it to be as well. But guess Scirra don't want there files to be flagged as such, so maybe they weren't aware.

  • Hi

    Im running Superantispyware and it keep reacting to the pngout.exe as being a Trojan agent that is considered a critical threat.

    The file is located in \exporters\Html5\Tools\pngout\pngout.exe

    The exact message is "Trojan.Agent/Gen-Otran"

    "TROJAN.AGENT/GEN-OTRAN is a malicious application that can infect your computer and make it almost unusable. It is important to get rid of this virus as soon as possible to avoid loss of data and corruption of files on the computer.

    Note:- This parasites block downloads by issuing fake warnings or canceling them. If download fails, reboot your computer into Safe Mode with Networking. To do this, turn your computer off and then back on and immediately when you see anything on the screen, start tapping the F8 key on your keyboard. After that, select Safe Mode with Networking and press Enter on your keyboard."

    Any reason why it is doing this, I notice it with r179 and got rid of it there, and then tried to install r180 and now it have been installed again.

  • Not sure I understand exactly what you want to do.

    But if you make the 30 sprites that you need and add all of them to a family as you mentioned. Then you add a variable to the family itself called "Name" that will make it available for all the 30 sprites. Then you name all the sprites what you want "K00", "K01" etc.

    Then you can select them using that name. Likewise if you want each of them to have a certain value variable you can add a value as well.

    Condition:

    Pick Family.name = "K00" - (Will select all sprites in the family that have this name.)

    Action:

    Set Result = Family.Value - (Will set something called Result to the value of the selected sprite (Family))

    Regarding choose, im not certain if you can do the following as I haven't tried it, and I don't use choose that much.

    Choose (Family.Name = "K00", Family.Name = "K01", etc.)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I dont think its possible. What i do is just make sure during developement that you dont have any important Things at the bottom. And then just move it when your ready to test in full screen.

  • I found this paper that might be interesting/useful to Ashley if you don't know it already.

    Its written by a David Silver from The university of Alberta and called "Cooperative pathfinding", and seems to offer an alternative to A*, I don't really know a lot about it or whether it will be useful at all, to be honest, but it seems to cause some interest around the internet.

    Anyway here it is, its only 14 pages.

    http://www0.cs.ucl.ac.uk/staff/D.Silver/web/Applications_files/coop-path-AIWisdom.pdf

    Here is an example of someone who have implemented it, and supplied the source code in Java as well.

    http://www.jkilavuz.com/whca/

nimos100's avatar

nimos100

Member since 23 Sep, 2012

None one is following nimos100 yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies