dcrew's Forum Posts

  • I have completed the example, took 5 minutes to work out (I'll include a picture and file below)! :D

    RedBlock = Explosion

    BlueBlock = Boxes

    GreenBlock = Walls

    -BlueBlock on collision with RedBlock

    = BlueBlock : Apply Physics Impulse 100 toward RedBlock.X, RedBlock.Y

    <img src="http://screensnapr.com/e/GL5F3g.png" border="0">

    Click here to Download the Source File

    It makes sense that impulse is basically (move away from another object) which is an explosion, so as soon as I saw the impulsion option I knew :) Have fun blowing up some blocks Tonycrew

  • -On Collision between Explosion and Object

    = Apply force 1000 to Object in opposite direction of Explosion

    If construct 2 doesn't have "in opposite direction of" then it needs it I say. otherwise do:

    -On Collision between Explosion and Object

    = Apply force 1000 to Object in direction of Explosion.Angle/Object.Angle*360

    / = devide   * = times

    If not try:

    -On Collision between Explosion and Object

    = Apply force 1000 to Object in direction of Explosion.Angle/Object.Angle+270

    It's something along those lines of math!

    Just thought:

    -On Collision between Explosion and Object

    = Object look towards Explosion

    = Apply force 1000 to Object in direction of Object.Angle+180

    It's really similar to one of those, I'll make an example tomorrow!

  • It's in the works

    Thanks!

  • Player overlapping tree = opacity 50

    Player not overlapping tree = opacity 100

    Yes, How is that humanly possibly difficult to understand? -.-

    Edit: Oh I realise your suggesting code, I don't know if that would work because wouldn't you need to check each tree object with a For Each?

    Edit 2: I'm a fruit!! It worked:

    <img src="http://screensnapr.com/e/xCEjeZ.png" border="0" />

  • Hello, Dcrew here! I have this:

    <img src="http://screensnapr.com/e/rYDT1i.png" border="0" />

    The code makes it so that if the player is under a tree then the tree is half visible (50 opacity).. and if not then the tree is fully visible. Now as you see in that code I use a for each loop. and wondered if there was a way that uses less memory. it's not bad (it runs fine) but I'm guessing with my code that I used if I had like 50+ tree's then it would get laggy.. Is there another ray of hope? Or will an update make a better way?

  • Hello! Dcrew here asking another question.

    I recently begun my first surreal project (Cannonball was mainly a testing ground) and it's a Top-Down Zombie Apocalypse shooter! :D

    I have just implemented the first crosshair for the game, and I wondered if there is a way I can hide the mouse, I want to hide it because now instead I have my crosshair visual!

  • Welcome to Cannonball!!

    When I discovered how fantasticly amazing the physics are in Construct 2. I was just inspired to create a little test.. but only then did it inspire me so much to make a game out of it. This is the 2nd version of it and it's been highly improved. Your in a battle in this turn-based strategy? to fight against your oponent enemy!! It's not easy.

    It's not complete yet, You can have a mess about with it if you wanted because I'm including the source file just for you (and everyone else :P)!

    <font color="magenta">Change-log:</font>

    <font color="red">0.2:</font>

    <font color="blue">-Added: Enemy AI, Simple and Choppy

    -Added: HUD (heads-up display)

    </font>

    <font color="red">0.3:</font><font color="blue">

    -Added: Free Cam (W,A,S,D and Arrow Keys, Space to disable it)

    -Added: Sounds and Music to the Game

    -Improved: AI doesn't flicker anymore, has nice smooth aiming

    -Bug fix: Camera action-chase when firing an explosive ball</font>

    Hope you have fun with this!

    Enemy War was suggested by Mehtab

    <font color="magenta">Controls:

    • Left Click: Shoot (When it's your turn)
    • Right Click: Debug Build Menu
    • Key '1': Select Normal Ball
    • Key '2': Select Explosive Ball
    • Keys 'W,A,S,D' and the Arrow keys: Free-cam movement
    • Key 'Space': Re-lock Cam (disable Free Cam)</font>

    Play the game directly in your Browser!: Play in your Browser!

    or..

    <font color="red">Download the Source-code</font>: Mediafire, <font color="blue">Mirror</font>: Uppit

  • You may want to try int(random(1,2)) which results will be either 1 or 2.

    Without the int(), your result is probably a float.

    If this is still not what you want/doesn't work as intended, can you post a capx showing the problem ?

    Also in the first line you write ("Random(1,2)"), did you write it like that in C2 too ?

    The ("") might indicate a string, which is not the correct variable type apparently and is not necessary.

    That worked like a charm, Thanks very much for that Kyatric!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • dcrew

    Have you got any user-created plugins installed?

    Just a hunch, but I was having similar C2 bombs until I re-installed after removing all user plugins and deleting the C2 registry keys.

    I haven't had a 'random' crash yet (touch wood). Having plenty of physics related crashes, but that's a different kettle of fish :)

    Nope, I don't install custom plugs (at least not yet anyway), I'll re-install later and see what happens.

  • Thanks so much Kyatric!

  • Here we go:

    <img src="http://screensnapr.com/e/KooiYc.png" border="0" />

    <img src="http://screensnapr.com/e/1tIPF9.png" border="0" />

  • Hi, I'm wanting to make clouds!! To brighten up the game's atmosphere and feel :) I wondered what would be the best approach, I was think I could make them a 'Bullet' Behaviour with slow speed and also with 'Wrap' behaviour. Would this be the best approach? Thanks for your time!

  • Hello there, before we begin:

    Windows 7 Ultimate

    32-bit Operating System

    Intel(R) Celeron(R) CPU E1400 2.00 GHz

    2.00 GB RAM (Memory)

    Display: NVIDEA GeForce GT 430

    I added a variable to a sprite (my enemy in the game) called "BulletChoice" and it starts off at 0. in the events I added an event that says:

    * If enemy.BulletChoice = 0 Then:

    * - Set enemy.BulletChoice To ("Random(1, 2)")

    The combinations I've tried:

    Random(1, 2)

    Random(3)

    Random(0, 2)

    Random(0, 3)

    Random(1, 3)

    Random(1, 2)

    Random(2)

    I'm tyying to get the value to choose 1 or 2 (later there will be more) but It doesn't choose any of those numbers it seems, I really don't know what happens there? :S

  • And what about what's in the "View problem details" of the crashing window ?

    When I come accross the bug again I'll be sure to post an image of that Thanks!

  • Are you using R60 ?

    Could you please add your specs and others infos as asked in how to report bugs

    On C2 crashing, do you get an error window of some sort ? If so, please include it in your post, this would be helpful.

    This sounds like this bug (supposedly fixed in R60), can you confirm it is the same kind of bug or are you using different steps ? If so, please provide a step/step explanation of what you are doing before getting the bug.

    <img src="http://screensnapr.com/e/RlNZR8.png" border="0">

    If I got a specific message I'd be sure to post it and I did say "When I click Save".

    <img src="http://screensnapr.com/e/jOxKb9.png" border="0">

    <img src="http://screensnapr.com/e/Xcedbu.png" border="0">

    No specific Error.

    Windows 7 Ultimate

    32-bit Operating System

    Intel(R) Celeron(R) CPU E1400 2.00 GHz

    2.00 GB RAM (Memory)

    Display: NVIDEA GeForce GT 430