w4rr3np34c3's Forum Posts

  • I am working on a point and click game engine, I would like to implement a system where you press J and then a journal comes up with text that I specify from existing triggers. What is the best way to go about this?

  • So I'm working on a project on which I got the idea from the tower defense template. I need the player to be able to choose what piece of land he is able to have the towers on in an overworld map, that would then after being clicked on show the layout for the tower defense. I was wondering how you guys would go about doing something like that. Is there a way to create a layout during runtime? Or would I have to use arrays to store where everything is and then save/load the array data to the one layout? Those are the only two ideas I had on how to do it.

  • Thanks again guys lifesavers you are.

  • Ok so as I progress I am starting to see a bit of an issue, I need individual spaces to each have their own separate variables, even though they may be the same tile, I wish there was just a way to make a grid or something that covered my layout but it's seeming that I will have to make one manually.

  • So I'm starting to understand arrays a bit more but still feel like a complete noob, I tried setting some text every tick to "TileProperties.At(Mouse.X,Mouse.Y)" but I am assuming that it's the wrong way as it stays at a constant "0" I'm pretty much just going by trial and error at this point xD

  • You could use an array.

    Let's say your map is 20x30 tiles, and that each tile could have up to 5 properties.

    Then if you have an array of 20x30x5, let's call it "TileProperties", you could decide that, in this array :

    - TileProperties.At(X,Y,0) = the defense of the tile at X,Y in the tilemap.

    - TileProperties.At(X,Y,1) = the movement cost of the tile at X,Y in the tilemap.

    - TileProperties.At(X,Y,3) = the property you want of that same tile at X,Y

    ...

    To do this, once the map is loaded, you should check every tile to store the properties in the array. Something like this.

    Once this is done, you can then know what is the property value for each property of each tile on the map with a single Array.At.

    Sorry but when you say 20x30 do you mean 20x30 pixels per tile? Or 20x30 tiles per map?

  • Thanks for the replies I really love this community. <3 to everyone.

  • How would I go about making an advance wars style grid? I have already made my map via tiling, but I was wondering how I would start to make each tile have their own variables, I'm guessing I would have to make a grid of some sort that is 16x16 but I'd hope I wouldn't have to do this manually through sprites or anything, would anyone be able to tell me where I could get started?

  • I feel extremely stupid but thank you so much, you just made my day a whole lot better ^^

  • I am trying to use the platform behavior to aid in making npc's based off of an earlier tutorial I downloaded somewhere and can no longer remember, so I put down my sprite, set the behavior and then set it to be controlled by player 10. When the game starts up it immediately starts moving right and jumps off the screen. I unplugged my keyboard thinking I might have a stuck key or something but that didn't help, I also checked the controls and nothing at all could be controlling the player, no scripting for any player other than player 1. I am at a complete loss here, anyone know why this would happen?

  • Would any of you mind helping me add a font to my project? I had assumed you would be able to just right click the folder but that isn't working for me, any ideas?

  • well I removed the few lines where it decreased, basically the line that allows it to increase in size was reversed, so that if it was greater than 81.92 it would decrease at the same rate that it increases while being fired. Once it starts to do that it stops midair, decreased in size, then moved along its course.

  • http://dl.dropbox.com/u/52562580/bowlBombing%20%281%29.capx there ya go :3 thx you seem to be very helpful and active.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • well my game is using the power shot like in this tutorial here: scirra.com/tutorials/178/bullettime-charge-shot and im trying using a physics object instead of a bullet. So when it's charging its on layer 1 and starts to change the size (bullet.Width + 0.5, bullet.Hight + 0.5) then on mouse release it moves to layer 2 and changes the size to (bullet.Width - 0.5, bullet.Hight - 0.5) but it stops in midair and decreases size. Anyone know why?

  • Thx Yann this will help with the rest of the game :3