larrynachos's Recent Forum Activity

  • If you open the 3d FPS example, you'll notice that rubbing against walls/solids makes the player just zoom down the wall. I've been playing with rot.js and making 3d procedural mazes/dungeons, but moving through the corridors is tricky with the player speed jumping up every time they touch the walls. Is there any way to keep the player from sliding like that? Thanks!

    Bonus question: I use the car behavior to move forward/backward/turn, but have to use custom movement to strafe left/right. This has the unintended effect of making diagonal movement 2x speed, any way to negate this?

    Tagged:

  • No takers? I've been trial and error-ing, trying different effects just to test and I guess I'm just doing something wrong but can't find the proper documentation to get me on the right track. I just want a crt filter maaan

  • I noticed there still hasn't been a CRT effect plugin for Construct 3, and instead of begging someone for it I decided to try making the effect myself. I have C3IDE downloaded and I've been trying to port crt-lottes.glsl, but when I test it in C3 I get a crash and a bunch of errors.

    Here are the errors I'm getting:

    main.js:1933 Failed to compile shader program: Error: Error compiling fragment shader: WARNING: 0:15: 'parameter' : unrecognized pragma

    WARNING: 0:16: 'parameter' : unrecognized pragma

    WARNING: 0:17: 'parameter' : unrecognized pragma

    WARNING: 0:18: 'parameter' : unrecognized pragma

    WARNING: 0:19: 'parameter' : unrecognized pragma

    WARNING: 0:20: 'parameter' : unrecognized pragma

    WARNING: 0:21: 'parameter' : unrecognized pragma

    WARNING: 0:22: 'parameter' : unrecognized pragma

    WARNING: 0:23: 'parameter' : unrecognized pragma

    WARNING: 0:24: 'parameter' : unrecognized pragma

    WARNING: 0:25: 'parameter' : unrecognized pragma

    WARNING: 0:26: 'parameter' : unrecognized pragma

    WARNING: 0:27: 'parameter' : unrecognized pragma

    WARNING: 0:425: '' : unexpected end of file found in directive

    ERROR: 1:1: '' : syntax error

    Here is the code I'm using:

    github.com/libretro/glsl-shaders/blob/master/crt/shaders/crt-lottes.glsl

    If I had to guess, I'd say that it's because I didn't add any parameters in the parameters section of c3ide, but I wasn't sure whether they were float values or not, what the default values are, etc.

    Can someone smarter than me please help? xD

    Tagged:

  • 1. Remove the fog effect from the layout.

    2. Apply the fog effect to the enemy billboard.

    3. Put the billboard layer on top of the game layer.

    This worked, thanks! It was driving me crazy xD

  • I'm hoping it's an easy fix, but I've been trying different things, blend modes, trying the fog effect on different layers, but I can't seem to find the right combo. I've been looking at the foggy zombie shooter example, but I don't see what it's doing differently. Help pls!

  • Howdy, been working on a maze horror game and I'm having an issue where the empty space in billboard sprites are cutting through the fog effect, resulting in an ugly box surrounding the sprites. How do I fix this? I have the billboards on their own layer with camera distance sorting, the fog effect is on the layout as a whole.

    Thanks!

    Tagged:

  • Howdy everyone! I've been chipping away at my new game, and I've run into a few hurdles while working on the lighting system.

    I've managed to get my tiles to ALMOST look like terraria, with the tiles fading away as they get further away from the surface. However, as you can see in the screenshot below I have some weird issues with it. Some layers don't have any shadows, and weirdly won't get darker until I break more blocks into it.

    The light object is in the middle of the layout, -224000 pixels up to try and emulate the sun (I had been experimenting with having it rotate around the world, but that resulted in a bunch of shadows being cast upwards, blocking the screen).

    Is there any way for me to make this lighting system work with the shadowcaster behavior, or am I trying too hard in the wrong direction? I already know that I could be using a black "light" layer and have sprites that punch holes through it, but I don't know how to do that on a large, dynamic scale. How would I make light bleed into a cave after breaking blocks, stuff like that.

    Any tips or links to resources would be greatly appreciated!

  • You do not have permission to view this post

  • I've been finally dipping my toes into the multiplayer front, and I'm running into a small issue with my turn based tank combat game. I can provide my capx if necessary, but it's a little big and I have tons of custom plugins so I want to avoid that if possible

    The system I have in place is as follows:

    Depending on TankGameState (hostturn or peerturn), the host or peer can click once to shoot a single shell in the direction of the tankbarrel (setting TankGameState to either HostShooting or PeerShooting). If the tank shell collides with the opponent tank, ground, or layout border, it destroys itself and sets TankGameState to either hostturn or peerturn depending on who just played.

    The system works on peerturn for both the peer and host, with the peer's shell showing up and responding on both sides. However, on the host's turn, the host shell appears on the peer's window but not the host window, and the GameState doesn't change to HostShooting like it's supposed to, so the host can shoot as many times as they want and the missiles won't detect the collision with the peer tank (because that even only triggers if the state is HostShooting).

    Here is the relevant code:

    I'd appreciate any help! If you want to peek at the capx, let me know and I'll upload it.

  • ok, just uploaded the file for you to look at...

    Wow, you really went above and beyond, I can't thank you enough! I'm excited to dig through this capx and educate myself, you did me a great favor with the selection direction and troop indicators! I certainly don't use containers and families as often as I should.

    You really got me out of a tight spot, thanks again! I can't wait to jump back in and work on this game some more!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've tried pretty much every variation I can think of and still can't get it to work. This doesn't bode well for my game :x

  • could you share the sample project for me to look at?

    I can provide the project file, here you go:

    drive.google.com/file/d/1Aef7Y12yIEIqwA36w27mE-bGuo_dN-Kh/view

    I think I'll probably have to max out at 200 entities (100 for each team, either tanks or troops), but I'd like to see how big I can get before my computer poops itself :D This is the first time I've attempted something this scale, and I want to make sure they behave somewhat realistically :X

larrynachos's avatar

larrynachos

Member since 6 Jan, 2013

Twitter
larrynachos has 1 followers

Connect with larrynachos

Trophy Case

  • 12-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies