RomanCenturion's Recent Forum Activity

  • what do you mean by an additional condition?

  • I'm having some trouble with overlap. I'm using construct version 0.99.85. It seems that whenever the object is at the same y position as the object it registers as overlapping even though the x coordinates don't overlap. Is this a bug? Does anyone know if there's another way that's simple (I know a much more messier and complicated way but don't want to do it unless I must.) Thanks.

  • Thanks, I get how that works now. It makes sense too.

  • I'm just trying to see if my idea should work or if I'm doing something wrong. I have a sprite with the bullet behavior that moves towards where the mouse was clicked. I'm trying to get the sprite to stop when it reaches where the mouse clicked. Sadly , it won't stop. Here's what I have. I am using version 0.99.62.

    condition:

    right mouse button clicked

    actions:

    sprite: set speed to 250

    sprite: rotate 360 degrees towards (MouseX, MouseY)

    System: set global variable 'mousex' to MouseX

    System: set global variable 'mousey' to MouseY

    conditions:

    sprite: Y Equal to global('mousey')

    sprite: X Equal to global(mousex')

    action:

    sprite: set speed to 0

    Also, if anyone has an idea for how to select certain troops and unselect them once they have been assigned to do something it would be great. Thanks .

    Edit: I scrapped the variables and instead am using another sprite that goes to where the mouse right clicked. That part works fine now. I'm just wondering if there's anyway to make an object selectable and unselectable.

    Edit: I used private variables for determining whether an object was selected (tell me if there's a better way please). Right now, I'm wondering if there's a way to use custom movement to make an object move towards a position without using rotation. Thanks .

    Edit: I found a way to do it without using custom movement, though I would still appreciate it if someone could explain a way to use it for this purpose. Instead, I used a sprite that had the bullet behavior and set the position of the first sprite to the second so that the first sprite wouldn't rotate. For anyone interested, here's the code that shows how I did it all.

    Note:

    sprite1 is a stickman, 'selected' is a private variable for stickman, rotating_sprite is a point whose opacity is 0 and has the bullet behavior, stop_sprite is a small box whose opacity is also set to 0, mouseandkeyboard object is used

    on left clicked on sprite1
    => sprite1: set 'selected' to 1
    
    on left mouse button clicked
    => sprite1: set 'selected' to 0
    
    on right mouse button clicked
    and
    sprite1: Value 'selected' Equal to 1
    => 
    stop_sprite: set position to (MouseX, MouseY) 
    rotating_sprite: set angle towards stop_sprite
    rotating_sprite: set speed to 250
    
    on collision between rotating_sprite and stop_sprite
    =>
    rotating_sprite: set speed to 0
    
    always(every tick)
    =>
    sprite1: set position to rotating_sprite.X, rotating_sprite.Y
    [/code:2ww8lwx0]
    
    Sorry for all the edits, I made some mistakes and had to fix them.
  • Thank you so much; I really needed this. I tried it out and it works perfectly.

  • I'm attempting to make a program that can't be opened until a certain date. Is there any way to do this? I was thinking that using system-compare time might work, but I have no idea how to convert the date I want(July 15, 2010) into milliseconds. I tried using python script, but I'm not really familiar at all with python. I will appreciate all help. Thank you.

  • Thanks I'll try it out and hopefully succeed.

  • I'm trying to get a window that pops up when you press "Load." In this window, I want the user to be able to pick which file to load from the computer by clicking on it. Sort of like loading an image in paint or some other program. Is there any way to do this? I can't find any information on how to do it anywhere. Thanks in advance for any suggestions or advice on how to do this.

  • Don't know if the computer your using has a larger monitor, but it doesn't fit on mine. Also, the width and height of the program wasn't large enough on mine so there was text going off the screen in parts and I couldn't see the the tool bar if your program had one. It's probably just my computer, but that's all I was able to find out.

  • Try Construct 3

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

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

    I'm not quite sure what bumpmapping is, so I have no idea what your trying to do with that. If you want to set it up using the always event, then choose "Light," "set position", change X to "MouseX" and Y to "MouseY." Otherwise, just add the behavior, "Mouse," to your "Light." Also, you may have to set the hot spot, so double click on "Light" and set the "hot spot(and orange dot in the tool bar on the left)" to the center of "Light." It should work after that.

  • Thanks Mr. Wolf and Silent Cacophony. I learned two new things today.

  • I'm creating a game and I've run into a problem. In my game, there is supposed to be a maximum of five enemies all at once. However, that is not the case. I have the computer spawn a sprite that is either an enemy pistol-man or an enemy shotgun determined by a random (1 or 2) global variable. Then, depending on which number is chosen, the computer spawns the enemy sprite when one sprite is killed. The problem is that the computer will actually spawn more than one sprite(I think, either that or randomly creating sprites which it shouldn't since I have it set up as a condition connected to another condition). Any ideas on why this is happening? Thanks in advance.

    P.S. Not sure how to post a .cap. Will do so if told how to. Thanks

    Edit: Here's the cap

    http://www.box.net/shared/pxlm0v85xi

    It's only my second game, so the events are a little all over the place.

    Edit 2: Just remembered that I don't mention the controls in the game. They are:

    Arrow-directions

    Left Click- shoot

    Right Click- run

    Control- switch weapon

RomanCenturion's avatar

RomanCenturion

Member since 6 Apr, 2010

None one is following RomanCenturion yet!

Trophy Case

  • 14-Year Club

Progress

14/44
How to earn trophies