bscarl88's Recent Forum Activity

  • It's a catch-22. In order to call On destroyed, it still needs the object to call it on, so it hasn't actually been fully destroyed yet. Put a Wait 0 ahead of the Set text, and it should work.

    I tried that before as well. When I put wait 0 seconds, it updates to show the count as 0 enemies

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I know this sounds simple, but for some odd reason, my sprite fonts wont display the correct enemy count on screen...

    Im doing a simple on Enemy create or enemy destroy, display the enemy.count in text. It doesn't register if I destroy the first enemy, so when theres 1 left, it says there's 2 left. What's even more odd is if I have it update text 1 second after the creation of destruction of an enemy object, it refreshes to say there's 0 enemies left This is happening for any objects I try to display their count on.

    The family is "enemy" so there are multiple objects that are a part of it, but it should still display properly.

  • I don't think that would do it, because I don't want it to look like the player is teleporting, just as if they are still moving along the seamless world. Also, this would misplace the enemies. If I have to teleport the player, the enemies would lose sight of the player's ship when he's crossing the imaginary teleport line

  • I want my worldmap to be a flat top-down view, but I want them to be able to "Around" it as if it was a circular earth. I have it now so that when the player gets to the max layout spot, it teleports them back to the opposite end of the layout, but I want to make it so it's seemless and the camera doesn't stop scrolling then reconnect with the player.

    It would be easier to do since I know how to infinitely scroll TiledBackgrounds, but I will also have enemies chasing the player, and static points on the map for the player to navigate to. The static points make it so the ideas I have won't work. Any ideas?!

  • IS there any way to disable it on the platform behavior? I use it on the Enemy family for knockback, and I think that's whats causing it to stay solid. Disabling it doesn't seem to help

  • I'm trying to make an enemy of mine go simply left/right towards the player, but bullet/8 directional movement both make it so they can't pass through solids. Also, since my enemy is part of the Enemy family (which has all the enemy variables like states, health, and knockback) their knockback behavior uses the platform behavior which interacts with solids. I tried using simply "Move Forward" which isn't tied to any behaviors, but for some reason it wouldnt work when I disabled the knockback/platform behavior. Is there any way to ignore solids using these behaviors?

  • for building the rooms, I still don't have a way of doing this properly, because even if I gave each tilemap a "Name" family variable, I can't say Create Object that has name of "ApartmentA". I guess that's still where I'm stuck is trying to find a way to create specific objects in a family, because I can't choose a specific family object based off of a variable.

    as for the lamp or box idea, that's how it's setup currently, each chair has a different animation depending on the style, same for couches, desks etc.

  • Gearworkdragon - thanks! I'll study up and see if I can translate it to platformer/buildings. It's still not necessarily set as though It's taking pre-existing rooms I've created (like pre-fabs), which is what im ultimately going for. I'd like to have structure to my room based off of how I created them, but then just replace the tilemap to give it a different image, and keep spawn points coordinates for items/enemies.

    Is there a way I can choose a specific object to spawn from a family? Like if I gave each pre-defined tilemap build a variable like "Apartment1A", and all the pieces that go with it have the matching variable. Can I then choose to spawn TileMaps with Variable = "Apartment1A"? I dont think you can spawn items from other layouts, so they would all have to be available on the layout I'm working on I think right?

  • I'm looking for a little guidance on how to best go about this. What I want to do is to make a building generator, that builds each floor with random decorations (based off of hotspots I designate) and all, and stacks them on top of each other to make either a sky scraper or other types of buildings.

    I currently have front and back tilemaps for each building, because as you enter one, the front tiles fade away. This GIF shows an example of what I'm doing: http://giphy.com/gifs/3oEjI6PIzJYyDettRu

    The best way to do this would be the use of something like "Prefabs", just make a bunch and stack them that way. C2 doesn't have anything like that though. All my tilemaps are going to be designed the same way, so they can even be interchangeable, and the windows will be in the same place:

    Is there a way to catalogue each setup so I can just build a bunch in a separate window and "Stack" them? Only thing I can think of is to make a ton of functions, one for each floor type and position each object and hotspot by eyeing it out.

  • If i understand it right, i would try making an array for each player and then when it comes time to play or make a new game with the player just have a function to call for when a specific character is chosen and then populate the array based on that so that you would be dealing with 4 array instead of ten array and having to erase them every time.

    And then for the rest If i remember right there are some value that should be stored in array and then in dictionary. Not sure what is best used. Im working on a system myself but its just for one character atm. as for persist you can just set the array to global. Saving the game is one area i have no explored yet.

    thanks! That's what I'll do then! I'll do a player 1-4 array. And assign the player's variables on each start of the screen based off of the global array.

  • I'm creating a local co-op RPG game, up to 4 players can choose from up to 10 characters (each with their own move sets) I need to store/persist player variables like:

    -Level

    -Character Name

    -XP

    -Money

    -Base Health

    -Base Damage

    -Ability 1 Level

    -Ability 1 upgrades

    -Ability 2 level

    -Ability 2 upgrades

    -Ability 3 level

    -Ability 3 upgrades

    -Ability 4 level

    -Ability 4 upgrades

    -Armor Piece 1

    -Armor Piece 2

    -Armor Piece 3

    -Armor Piece 4

    -Armor Piece 5

    and probably more that I cant think of. Should I make 1 array to store all this information for all 4 players, 1 array per player, or 1 array per character? I need them to persist through layouts, and I might possibly need them to save between play sessions as well.

  • Centra hmmm not sure! I tried to optimize early on. Plus most of those objects are just background/scene art. So there's no thing to them except for holding their place on the map. Do your objects have a lot of complex code associated to them? I did what Colludium told me to do and disabled a lot of my enemies if they weren't on screen. This greatly reduced

bscarl88's avatar

bscarl88

Member since 11 Oct, 2012

None one is following bscarl88 yet!

Connect with bscarl88

Trophy Case

  • 12-Year Club
  • 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

16/44
How to earn trophies