Zerei's Forum Posts

  • Hello Guys!

    I have this "orb1" and "orb2" sprites. They are the same sprite, but I need one to be green and the other to be red. I think that I can use WebGL to change their color.

    But... I just can't seem to find a way to apply this effect. Yeah, that's it, I don't know how to apply a WebGL effect to an Object. I've looked everywhere, and didn't find an answer.

    Please help :(

  • Hi Guys!

    I have another question... Sorry if it was answered before, but i'm not home and I cannot open any capx file... But I kinda need an answer about this.

    I have those two objects: A and B. I have another object, called Camera, that must be always between A and B.

    A and B move at XY axis, like GhostShooter game. Think of A as the hunter, and B the ghost. What I want is the camera to always be between them, so the player will always have vision of both, regardless the ghost distance from the hunter.

    How can I do that?

    Thanks!

  • Wow, that worked quite well! didn't though of that.

    Anyway, what if I want to implement a flash like effect, acting as a feedback to the payer, indicating that he earned an item?

  • Try Construct 3

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

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

    I have this game, in wich you earn itens based on the amount of points you have. Those items are displayed at the bottom of the screen, side by side.

    For example, player has earned 30 little ores, they are all displayed at bottom of the screen.

    Problem is, I cannot think an easier way to do this. Let's say that he has 20 ores... Am I suposed to create 20 events for it?

    My game is using a resolution of 800x600. The variable that controls the amount of items that the player won so far is called "Points".

    To summarize, what I want to do is something like this:

    For each point on "Points", spawn object "Ore2" at position Ore1 + 10 pixels, then, repeat until 30.

    Glad if you could help!

  • Thanks Guys! It really helped!

  • In terms of performance, how wold the mask imply at this game?

  • Hello!

    In my game I have this bar, and a sphere. Whenever the sphere is over the bar, the player must press spacebar. But, I want to have the player to check if this bar is red or green. If it's red, he cannot press spacebar.

    My issue os That i need the bar to change colors when the sphere is about 100 pixels close to the bar. Problem is, the sphere can approach from left or right, and i can't calculate X that way.

    Glad if you could help!=D

  • Looks like I managed to read the CSV. But I can't spawn 2 or more FireBalls =\</p>

  • Here is an example of a CSV:

    CSV,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

    First,1,2,1,1,1,0,1,2,2,0,3,0,2,0,0,1,1,1,2,12

    Second,2,2,0,1,2,1,1,1,2,1,1,0,2,3,3,3,1,2,2,0

    Tirth,0,0,1,0,0,2,1,0,3,1,3,0,2,1,3,2,3,0,0,0

    Fourth,1,0,3,1,3,2,0,2,3,2,3,1,0,2,1,0,2,3,2,0

    Fifth,0,0,0,1,2,0,1,1,0,1,2,0,1,0,2,2,0,3,3,0

    The idea is to spawn that amount of fireball at Y (100, if in the first line, 200 if in the second, 300 thirth, 400 fourth, 500 fifth) at every 2 seconds, for example. This is done, let's say, 40 times at the first stage and 60 at the second.

    Please tell me if my question is clear enough.

  • Thanks! Now things get complicated.

    Let's say I have this CSV file, with 5 lines and lets say, 20 columns.

    How do I make the construct read this CSV, and if, at the column 1:

    Line 1 value is 1, spawn one fireball at Y = 100,

    Line 2 value is 3, spawn three fireballs at Y = 200

    Line 3 value is 0, spawn 0 Fireballs At Y = 300

    Line 4 value is 1, spawn 0 Fireball at Y = 400

    Line 5 value is 2, spawn Two Fireballs at Y = 500

    Did I make that clear? Then, after let's say, two seconds, the cicle goes on, but now reading column 2. Then3, 4, And So on.

    Please, somebody help :(

  • Guess it's more like Nimtrixs said. Can you explain me better , how to use this loop?

  • Hello guys. Two Questions:

    1) I need to make a sprite spawn some fireballs at determinated positions, many times, in a order that I want.

    Let me explain better.

    I have a Witch who spawns 4 fireballs at 5 random locations.

    How can I create a preset, I mean, how can I pre determinate the order and the position at which the fireballs are spawned, without consuming a lot of my time on the process? That's because the witch will spawn about 100+ FireBalls per stage.

    2) Actually, i'm using this code:

    <img src="http://img269.imageshack.us/img269/3945/semttulooa.png" border="0" />

    But sometimes, some fireballs are spawned at the same Y Coordinates. How can I set them to spawn exactly four, but always at different Y? (being it 100, or 200, 300, 400 and 500)

    Appreciate the help!

  • So, basically, if I make an event:

    Every Tick > Add 1*dt to Timer(varible)

    That variable will represent an actual time counting?

  • Hello!

    If I remember corectly, maybe one of the Construct 2 earlier releases implemented an high resolution timer. Am I wrong about that?

    Anyway, question is: if i'm right, then, how do I use it?

    I want to make a game that register miliseconds. That's impossible with construct, right?

  • Actually, I don't know if I must adress to it as a bug or as a mistake that I did.

    Saying that because, after some changes (which I don't remember), my game, after being exported to HTML loads very fast, and then just shows a Blank Screen.

    I'm kinda desperate about that, because my computer restarted all by itself some days ago, I think that this was the reason. Maybe my game got corrupted?

    I don't know. i'll post the Capx if it's really needed (78mb). My version is r90.

    Every help is appreciated!