AllanR's Forum Posts

  • I just made a quick test file and it worked just fine - used similar settings as you...

    maybe there is some issue with converting it from C2. Maybe try making a new file with just zoom and see if it works.

  • The Mouse click trigger only picks the object clicked on, so you can't pick other instances by UID because they have already been filtered out.

    You could add a subevent to Pick All after the wait 4 seconds, and then move the other subevents under that. Or put all that code in a function and after 4 seconds call the function. (They will all be pickable inside the function).

    Just because an instance is invisible does not mean that it can't be clicked on...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • in Layout 4, You are using "Time=50 Seconds -> Goto Layout 5"

    Time is a system variable that keeps track of how long your program has been running from the time it started (at the very beginning). So, by the time you get to layout 4, more than 50 seconds has already past so it goes right to layout 5.

    You can make a global variable "StartTime" and set it at the start of the layout so you know how many seconds has past when the layout starts:

    "System - Set StartTime= Time"

    then, when checking Time, check for "Time = StartTime + 50"

  • asking in the C2 forum would have helped...

    Pretty much the same as in C3, but you have to use the browser object to call the javescript.

    https://www.rieperts.com/games/forum/DayOfWeek.capx

    NOTE: THIS WILL ONLY work when the user runs the program. If your code says to do something on Monday, it will only happen if the user happens to run your game on a Monday.

    If you want something to happen automatically, whether the user opens the game or not, then you need to store the last date they opened the game and calculate if a Monday has past, or you have to set up user accounts on a server and have code run there that keeps things up to date...

  • You can use "On touched object -> FactoryObject". That will pick only the factory you touched (as long as they don't overlap). Action after that will only apply to that one. If you need to remember after the touch event, then store the UID of that factory in a global variable, which you can later use to pick just that one factory.

  • Nicely done Maverick! :) and good idea Norman!

    played three times - third time got a score of 1632.

    Found what I would consider a bug. If you place a block that completes both a horizontal and vertical line, both lines are removed. But if you place a block that completes both a square of 9 and horizontal and/or vertical line only the square of 9 are removed. The checksquare function should not remove blocks until the check function has had a chance to look for complete lines...

    Norman, an undo system is certainly possible, but adds a lot more complexity!

  • I tried to get the file from your previous post, but it was only the .caporj - which doesn't include most of the files needed to run it. You need to post a .capx or .C3P file for us to take a look.

  • You can't set the textbox contents before you call the layout - The layout will create a new instance.

    Create a global variable called MessageText or something, and set the variable where you are setting Etext now. Call the End layout and at the start of that layout, set Etext to MessageText.

  • nicely done! that works very well - I haven't done much with Z-elevation.

  • You beat me to it Dop!

    I was having fun making an example, based on one I saw you do last year - using lerp to have the score count up...

    https://www.rieperts.com/games/forum/BumpScore.c3p

  • are you using Chrome? any extensions that might be blocking it?

  • ok, I had a lot of fun playing around with that! :)

    I tried copying several parts of what I saw in the video...

    I was going to add comments explaining what is going on but ran out of time. There is a camera sprite that has scrollTo and bullet behavior that makes the screen scroll. The layout has unbounded scrolling so it can go forever. Then I move the backgound images back up to the top when they move off the bottom.

    https://www.rieperts.com/games/forum/SkyForce.capx

  • in the spritefont properties, you have to set the character size (which for your font should be 7x9)

    and you have to tell it what the character set is (which letters appear in your font, and what order they are in), which for your font is:

    !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

    (note the first character before the ! is a space character, so don't forget it or all your letters will be off by one.)

  • I played around with bezier curves a few months ago for a bit...

    this is the file that I posted in a couple other threads:

    https://www.rieperts.com/games/forum/Bezier_Curves.capx

  • that does help a lot... I watched some gameplay on youtube, but couldn't see how the movement related to the player's finger.

    the space blaster demo requires that you keep your finger right over the ship. The relative movement makes it a lot easier to see what is going on. I don't have time right now, but I might take a closer look later tonight and see what I come up with.