EpicRaid's Forum Posts

  • Hi,

    Thanks. I just noticed in Construct 3, the divide symbol is indeed different, but looks like a '+'.

    I tested your link, and it works. Just that the sprite doesn't stop exactly at the touched location. In my file for example, the player sprite stops about 40 pixels before the exact touched place (measured from the image point of the sprite to touch x and y).

    Thanks.

  • Hi,

    Maverick1912 Thanks for your effort, I tried your example and also integrated it in my own file, but the sprite doesn't seem to slow down to zero or does it just appear that way (because of the 50 px distance)?

    Also the sprite moves to a different location when you click on the exact spot the sprite stopped.

    Could you tell me how you got to Player.Width+2? And Self.Bullet.Speed-50?

    So first calculate the distance between the touched location and the sprite, and when the distance is smaller or equal to the Player's width +2 (what does '2' add?) the bullet speed of the sprite is set to -50 speed.

    I'm just trying to grasp what happens and the logic behind it.

    Edit: In your example the bullet also stops not precisely at the clicked location. I noticed this in my own file, where my sprite stopped about 30 pixels before the exact touched location.

    dop2000 Hey I prefer to stay away from plugins. I really, really want to try to do this with 'vanilla' Construct 2, as plugins may cause issues and is probably why they're 3rd party in the first place?

    Perhaps you have some idea..

    Regards

  • Hello,

    Currently the player can fly around the screen with touch. You tap anywhere on the screen, and the Player (bullet) moves to the location (on tap: set bullet speed to 100). On the tap gesture I store Touch.X and Touch.Y in global variables called 'TouchX' and 'TouchY'.

    Then, every tick the Player rotates toward 'TouchX' and 'TouchY'.

    Now, this works, but when the Player is at the location it starts spinning around its self. What I prefer it to do is, 50 pixels before the touched location the Player to gradually slow down to 0 bullet speed, and just stand still on the screen.

    I looked at some samples where you store the Player initial location into variables, and compare it with distance. But I was unable to translate it into my example.

    Any ideas?

    Regards

  • Thanks for the explanation. I still need to process it, but now I know how it works.

  • OK thanks. Why does it return negative values between only 180 and 360 though? That makes it confusing to me :P

  • Thanks!! That works like a charm.

    You are a very helpful member.

    I was wondering though, how did you get to the values -160 and -20?

    Thanks again.

  • Hello,

    I'm trying to make something where the user uses touch to direct fire.

    As you can see, I have no idea what I am doing.

    This works in a way, but the left and right side their angles differ from where I set the turret sprite (horizontal X position).

    I suspect it has something to do with the Touch coordinates messing with the numbers of the max angle.. but I'm not sure.

    I just want the turret to go max 200 degrees (which is the max angle left) and 340 degrees (max angle right).

    The turret starts with an angle of 270 (pointing up).

    Any ideas?

    Regards

  • Thanks for your reply!

    Unfortunately, I made an error and posted in the Construct 3 forum, and am but a Construct 2 user, haha.

    I thought to myself, what is this '.c3p' file!?

    I don't know if you own Construct 2, but I won't be able to open Construct 3 files.

    If you don't have Construct 2.. guess I need to have the topic moved anyhow. :P

  • Hello,

    I was trying to make an infinite level. But I noticed almost everything needs to be set as a bullet to move to the left such as backgrounds and enemies (or right as you prefer). Specifically effects are problematic, especially when the effects are spawned by another object that is moving.

    The spawned effect (like a missile smoke trail) is almost impossible to program because it needs to move to the left outside the screen, but also initially follow the missile.

    I guess one option to avoid all this trouble is to make multiple ending levels, although I originally wanted to make an infinite level.

    The player (which is an aircraft) also needs to move realistically with its own throttle and brake to a minimum speed. Something that doesn't seem possible with an infinite level, in turn.

    Anyway, I guess I'm off to make multiple ending levels, but I'd still be interested if anyone has had any luck with what what I was trying to achieve. E.g. create an infinite level.

    Regards

  • I was trying to upload to the Arcade as well. Same error. Maybe Tom can help.

    I read somewhere there is a new arcade in the making? Couldn't find any confirmed info anywhere on that though.

    Hopefully this will be fixed soon.

  • Hello,

    Do you perhaps have something not based on plugin but rather 'built in'?

    Or perhaps a simple example code as alternative to standard 'Wait'?

    - R

  • Hello,

    I finally figured out that Wait and Time scale don't work well together.

    So say that I have this:

    Event > Set time scale to 0

    Event2 > Action

    Wait 3 seconds

    Set time scale to 1.0

    How would I go about replacing the wait time. I know there are Timer and Wait for Signal but can't figure out how to get it to work.

    Sorry for this noobish question.

    Thanks.

  • Thanks.

    I just thought at first that the layout would restrict anything outside of it once running the game.

    I'll try your suggestions.

  • So I noticed that you can still click on buttons that are outside the layout when the game is played from a browser such as Safari on iPhone. It seems strange that this is possible.

    Is there a way to prevent this? I've got buttons that I position on and off screen when needed. I need to keep them somewhere right?

    Now I think of it I could create and destroy them, but is there a way to prevent buttons from being clicked outside the layout?

    Thanks.

  • Try Construct 3

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

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

    In my game, which I play in the Safari browser on an iPhone 5, I get audio distortion about a minute of play after the soundtrack has loaded. There's also a delay before the soundtrack gets played, and I set it to preload the audio in the left panel of Construct 2.

    So after a minute of the soundtrack playing it start distorting and then stops. When I close the browser, the sounds (even the soundtrack) still play for a few seconds as well.

    Any idea what I can do to fix this? Or is it iPhone related?

    Thanks.