seancruz's Forum Posts

  • 9 posts
  • Ah okay, thank you very much Sushin! I need to become more acquainted with the functions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You just need to check the distance between the tile and spaceship.

    So if distance(Spaceship.X,Spaceship.Y,Tile.X,Tile.Y) <= 100

    Spaceship.stop (The pathfinding one)

    Spaceship.set angle towards position tile.x,tile.y

    Hi nimos100, thanks for taking the time to answer, and for the suggestions.

    Unfortunately, I can't figure out how to check the distance in C2. I understand you when you said to check the distance via:

    <font color=brown>if distance(Spaceship.X,Spaceship.Y,Tile.X,Tile.Y) <= 100

    Spaceship.stop (The pathfinding one)

    Spaceship.set angle towards position tile.x,tile.y</font>

    I can see that, but I can't find any condition that checks distance.

    The spaceship wont collide with the tiles as they are solid. However you can turn off solid for the selected tile if you want, but you have to regenerate the obstacle map then. And in its current state if you have to many objects, your program might pause for a short time while calculating, which makes the function rather useless, as no one cares to play a game that pauses all the time :D

    Let's say you open the game on the iPad. You touch-click on an asteroid tile, and the spaceship flies over to the tile, is angled towards the tile, and mines the tile on its own. All through just one touch on a tile. Is that possible without having to turn off collision?

    Or what if, you flew the spaceship by pressing and holding your finger down on a tile, and the spaceship follows the position of your touch, thereby making the ship mine the tile?

  • Hello,

    In my prototype, the player can dig/mine tiles. I want the player to have several options as to how he/she can go about mining. If you double left-click a tile, the spaceship heads towards the tile, but it won't face the tile or mine it.

    I envision the spaceship attaching to the tile once it arrives at a certain distance, and starts to mine the tile until destroyed.

    Right now, if you double click a tile, the spaceship will fly towards the tile, but it won't face the tile. How can I get the spaceship to collide or touch the tile from the front tip of the ship?

    Here's my CAPX to see: CAPX

    <font color="green">Controls:

    You can move via:

    -WASD or Arrow Keys

    -or, click anywhere in space to move

    -or, double click a tile to move towards it

    -Fly faster by holding SHIFT

    You can mine by:

    -Facing and touching the tile, and holding down SPACE</font>

  • Thank you, I was able to do it. Unfortunately, because I have multiple ways to move, it messes up. But alone, the mouse drag works.

  • Right now, I have multiple movements: 8 direction (keyboard), pathfinding (mouse and touch).

  • Hello,

    There are some games where, when you press and hold down the left mouse button and drag it across the level or screen, the player character follows it. Same occurs on mobile: you drag with your finger and the player character follows wherever your finger goes.

    Does anyone know how to do this?

    I can get the player character to move to mouse.x and mouse.y but it only moves it instantaneously.

  • Hi guys!

    Okay, so I've been trying to create a way in which the player image or graphic is tinted once it overlaps another object. I got that to work, however, I am trying to make the tint effect fade in.

    I made a gif of what I have so far: once the player overlaps the invisible object, the player's tint effect is enabled. However, I need it to slowly fade in.

    <img src="http://i.imgur.com/oAQU41G.gif" border="0" />

    Any ideas?

  • Yes that's what I'm using.

    I tried creating a white shape with additive layer mode, and dodge effect and exported it to mac native, and it worked. It brightens it for sure, however, I must find the right balance so it has the right brightness. I guess that's one solution. However, it's still strange that it appears so dark.

    I know that Mac color profiles are darker than PC, since I work on both creating art, but it's never been such a big difference. So it's weird that it gets really dark.

  • Hi guys!

    I am Sean Cruz. I am currently developing a game, and I have exported it to both Windows and Mac native apps. However, whenever I play the Mac app, everything is sooooo dark that it appears black. Sometimes, all you see is a very dark silhouette of the character. On Windows, it runs awesome. But Mac...always seems to cause trouble.

    I'll upload the app so you can see, for those who have Macs. Just press download and unzip the app. It's only one file.

    https://docs.google.com/file/d/0B1w7jAEh-bcqNjgydUdOaTAtLU0/edit?usp=sharing

  • 9 posts