SteveKane's Recent Forum Activity

  • faqro Did you manage to find a solution to this? I've come across the same issue.

  • This may be a silly question but can someone explain what 'presence' on the Xbox plugin and what 'on presence success' and 'set presence' does?

    I've looked on the Web but can't find a definite answer to what it is.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • blackhornet

    Ah ok, I see my problem. I gave the Timer behaviour to the platform sprite, rather than a seperate sprite like you did.

    Got it working now.

    Thanks for your help

  • blackhornet

    Thanks, i never considered the Timer behaviour. Thing is, from what i've tried, this doesn't do a constant 'every x second' does it?

    I've done On Start Layout - Start Timer 2 (regular)

    On Timer - Create object

    It works initially, where it creates a couple of objects at the start, but then stops.

    Whats the correct way of doing it? There doesn't seem to be many actions to choose from with this behaviour.

  • I've got an autounner game and was working on the platforms. I'm using sprites for my platform rather than tiled background like the autoruner template.

    Im using 'every X seconds' to create the platforms but i get an issue where the platforms start to overlap at the beginning when the layout is restarted after game over screen. I think it's something to do with the fact that the 'every X seconds' continues going even when it goes to the game over layout, but i don't know how to fix it.

    Here is the link to the capx -

    https://www.dropbox.com/s/myp3a2eobzuyz ... .capx?dl=0

    I'd appriciate help in fixing this please.

    Thanks

  • Thanks for the example, although this is a little more complex than i expected

    I will try to work with the capx you provided but ideally i'm looking for a method that uses bullet speed to control the speed of the platforms as my game relies on bullet speed, similar to the example i provided.

  • I've got an autounner game and was working on the platforms. I'm using sprites for my platform rather than tiled background like the autoruner template.

    The game gets gradually faster and the problem i have is that the created platforms sometimes overlap each other, especially when it becomes faster. Also sometimes that gaps between the platforms appear too big as well.

    I liked the way the autorunner template worked and tried to use that for my one, but i'm getting the issues i've mentioned.

    Ideally i'm looking to create the platforms so that the gaps between them vary, from small to bigger gap.

    Thanks

    https://www.dropbox.com/s/kxf74lnm70sljzk/Example.capx?dl=0

  • The offset X coordinate seems to work a lot better, i can work with this.

    Thanks so much for your help, appriciate it.

  • randomly

    Thanks, that example is helpful.

    How do i set the X value of the blocks to be random? Right now, the blocks are set in a diagonal pattern. I'm looking for the blocks to be a random pattern.

    I've tried by setting the block X value at - "random(20,340)*(loopindex+1)"

    This does sort of work, i'm not sure if its the best way. Is there a better way of doing that?

    I've created a vertical scrolling capx with the example you've provided as well.

    https://www.dropbox.com/s/whzdsgoxcvtzyz1/V-Scroll.capx?dl=0

  • randomly

    Basically, the game will switch between horizontal and vertical. Your example for horizontal scrolling has really helped, i can work off that to adjust how i want it.

    With vertical scroll, i want the blocks to spawn vertically.

    This is what i'm looking for, where the blocks are spread apart but have different X value. The X value would be random between the layout width.

    Thanks for your help so far

  • randomly

    Thanks for the reply, appriciate the help. The two pictures are the same, unless its just me, i can't see anything different between them.

    One more thing (Sorry!), my aim is to switch between horizontal scroll and vertical scroll. I assume that your method would be very similar to translate to adapt to vertical scrolling.

    For this, i did the same as you showed in your first post, but set Y as "Obstacle.Y-((Object*Obstacle.Bullet.Speed)/2)" instead of X. This works exactly as your example, which is great.

    I used the second part of your method by setting X as "yMin+((yMax-yMin)/(spawnCount+1)*(loopindex+1))" and again, it does work but the blocks are set horizontally.

    How do i set this veritcally? I know you showed how to do it in your second post, but thats with horizontall scroll.

    I can provide a capx for verticall scroll if needed, it's more or less the same as the one i've already provided.

    Sorry about the constant questions, and apologies about not being more specific.

  • randomly

    Thanks for the help, this is on the lines of what i'm looking for.

    One other thing, right now there is one object being created between the blocks, which is fine. If i wanted to create a few more objects in between the gaps, how do about about that?

    I've tried the following to do this but it didn't work.

    (Event) rndm>1

    (Sub Event) Every 0.5sec - create object

SteveKane's avatar

SteveKane

Member since 29 Apr, 2014

None one is following SteveKane yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies