🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

Support: 2D Engines Sticky

A topic by lysander created 1 year ago Views: 1,008 Replies: 34
Viewing posts 1 to 13
Jam Host

Questions & discussion regarding the following engines can be posted in this thread:

  • GameMaker
  • Adventure Game Studio
  • Construct 2
  • RPG Maker (All Versions)
  • Stencyl
  • And others!
Feel free to jump in and help eachother out! Don't forget to check out the mentorship directory!

I can't for the life of me get GameMaker to run. I've tried uninstalling and reinstalling, restarting my computer, running as admin, basically everything I can think of. Anyone else experience this problem, or have any idea how to solve it?

Host

Oh no ): !! I'm not too familiar with GM but I'm gonna ask a few questions that might help point to the answer for others. What operating system are you running + version of gamemaker? Does the program launch anything or not at all?

Oh right, that would have probably helped. Oops.

OS: Windows 7

GameMaker Studio 1.4

Also I'm on a laptop with an integrated graphics chip, which shouldn't affect anything but who knows.

The program just doesn't launch. I don't get a splash screen or anything. My computer does the whole 'thinking' cursor thing for maybe a second and then nothing happens. There isn't even a process or application to kill from the task manager.

Right now I'm trying to uninstall anything that I newly installed (mainly other game making engines because I wanted to tool around for a bit with a few to find the right fit).

Host

Hmm I looked around GM forums a bit and maybe try this or look down this thread for some possible solutions.

Decided to get it through Steam and it worked, instantly, with no fuss. So there's a work around if anyone else needs it.

Tried with steam after the regular download wasn't working. Keep getting errors time and time again. Just thought I'd add my two cents. Happy developing!

(this is game maker)

For some reason when i press x only the first frame of my attack animation plays, then the rest of the animation only plays if i move horizontally. I believe my move variable is putting out either -1, 0, or 1 depending on weather or not im hitting left or right or both. But if any of the code above my attacking code affecting the attacking code??

I also tried removing

&& sprite_index != spr_player_swing

but the problem persisted (i thnik this is a check to make sure the animation doesnt try to play over itsself)

(Edited 1 time)

I'm not familiar with GM, so forgive me if this is completely off the mark: let me make two assumptions about this code:

1. This snippet is run on every frame (i.e. in the game loop)
2. GameMaker reacts immediately to sprite_index being changed (by immediately changing the sprite)

With that in mind, I suspect your move code is affecting your attack code. Each time this script runs (presumably on every frame), sprite_index is reassigned to one of your other sprites in the move code:

if place_meeting(x,y+1,obj_wall) {
    ...
    sprite_index = spr_run_player
    ...
    else sprite_index = spr_test_player
} else {
    ... sprite_index = spr_player_jump; else sprite_index = spr_player_fall ...
}

So in the frame after you first pressed X, sprite_index will begin as spr_player_swing, but there is no scenario where sprite_index emerges from your move code as spr_player_swing (i.e. it's always changed). I assume GM reacts to this by changing the sprite and reseting spr_player_swing's image_index (what frame of the animation its on).

Then, in your attack code, you set sprite_index to spr_player_swing (if X is pressed), but the image_index has been reset! This causes only the first frame of its animation to ever be visible.

To fix this, try restructuring this code into one if/elseif/else tree. This is just a rearrangement, so no other edits are needed (although, judging from other people's code I've been perusing, you don't need sprite_index != spr_player_swing. I suspect GM doesn't react if you set sprite_index to whatever sprite it's already set to).

if place_meeting(x,y+1,obj_wall) {
    if (move!=0)
    ...
}</span> else if keyboard_check(ord('X')) { 
    sprite_index = spr_player_swing
    ...
} else {
    if (vsp < 0) sprite_index = spr_player_jump; else sprite_index = spr_player_fall ...
}

A lot of hunches at play here. Let me know if that helps!

I tried restructuring the code like you said, and even trying to put the attack animation in a loop (i probably didnt do that correctly though), neither worked for some reason, I finally found a fix for it though. Ill put it here in case someone else has a similar issue.

i had to make a variable in a create event and set it to false (attacking = false)


then make an animation end event and add this


it isnt working perfectly, i think other sprites might be happening during the animation depending on my inputs, but im going to try to make my attacking animation more than two frames and disable all input/movement during the attacking animation and see if it turns out looking and feeling better

or i might have to again restructure this like you suggested, ill post my code again whenever i get everything hammered out in case anyone needs it for reference!

also yes i believe your assumptions about GML are correct, this is in a step event so it runs every frame

Anyone got a good information base/ tutorial for the Game Maker scripting language?

Host(+1)

here's the gml reference and overview, and i'm not sure what your experience in coding is but there's a complete beginner's guide on the forums as well as a pdf. i found a website that has a few tutorials as well, and you could google youtube tutorials for the types of gameplay you're looking for.

(Edited 4 times)

so im kinda stuck, im using GM4mac and i just realised you cant export games with it (ughhhhhhhhhh) and i cant get any other game maker version because im on a mac. so i was wondering, should i use stencyl?? i have very little experience with coding so im thinking this is the way to go but idk, im just kinda bummed out rn ://

EDIT: ive used stencyl on my old pc so i know how to use it but im just asking if theres a better alternative

Host

ohhhh heck really ): i should probably remove the mac gm download link because that's a huge restriction i wasn't aware of.

stencyl is the only 2D mac program on my radar but i don't own a mac so i'm not really familiar with other stuff. i think it's a pretty solid alternative but i'll let someone else have a more final word on this.

im pretty sure you can export games in gm4mac if you buy it, but id rather buy something better p: SO STENCYL IT IS (sigh)

Host

OHHH YIKES yeah that's understandable. sorry to hear that ): !!!

Hey all, was wondering if anybody could lend me a hand in Construct 2. I' trying to figure out a way to get the player sprite to teleport, but I can't figure out which events/behaviors I need to set up to make it happen, and Google isn't helping. I want the player character to touch a transparent sprite, which will be the 'stairs', and have it jump them to the location at the top of the stairs instead of having an actual climbing animation.

Any advice?

Host (Edited 1 time)

hi! you'll likely test for a collision (or overlap, but a collision is a one-time fire). the event that would fire off would be a "set player position to object--i'd recommend creating some empty object(s) so you can move the the target points (and to see them visually in the editor!)around if you wish w/o having to change some hard number x,y values.

https://www.scirra.com/tutorials/509/movernos-a-ot...

I imagine it will be something similar to this tutorial, but without switching layers.

i made a very messy example here. perhaps you can streamline it for your own use.

explanation: when the player collides with the object, 'stairs' they are teleported to image point 1 of the stiars, which i set to the top right. taking them to the higher level.

I now have teleporting stairs! Yay! And best of all it only took three events to make it all work! Thank you for all the help!

This is for RPG Maker VX Ace. I'm trying to make a common event that shows some clue dialogue after you collect certain items, but when I test it, it won't do a thing when I have the items. I feel like I'm missing something but I haven't found any common event guides that have this. I'm going to continue looking but I might as well also put this here just in case someone has done this before. Thanks!

Well there's nothing wrong with your events but it looks like you put "collected all" to being switched on when switch "001" is activated so maybe when the character collects the last item, put "control switch" event into the last item event and choose 001 (or another switch you used for the collected all event) to be turned ON

Yeah I was guessing it was switches! Thanks, it worked.

Ok. New problem I mentioned. I edited my parallax map titles and added a page with items, and now I can't walk at all over my parallax backgrounds. I made a normal tileset area and I can walk on that. I can't find anyone else with this problem? I am just going to try to make a new tileset for my parallax stuff.

Maybe it's just the tilsets you're using for the parallax map? I don't really know mainly because i haven't use parallax mapping yet but i might have found a topic in the communtiy that might help with what you're looking for
http://www.rpgmakervxace.net/topic/12299-getting-s...
(If you get confused with the script, just go to the top of the tools bar and theres an icon named script editor and you just put the script under materials)(P.S if you're STILL confused maybe search it up on youtube maybe?)

I'm still messing with it. I have been using the tilesets from that tutorial and they have been working fine until now.

My scripts are all put in right, which is why I'm genuinely confused by why I just can't walk on these tiles.

I made a new map with the parallax tileset and it still didn't work so I just gotta keep troubleshooting. It doesn't seem like many people have had this problem/it just doesn't come up in searches.

I asked in the rpg maker forums (at least, I sent a post to be approved for help) so I'm going to see where that goes.

Thank you.

im literally miserable over this right now so im going to try to ask for help

this is in construct 2


sprite has a text instance variable named 'dialog' that's just set to some chatter. if you want to copy it for testing just put in filler text.

sprite font and dialog box are set on layer dialog, everything else is on the main layer.

so the idea here is that when the player is no longer overlapping the sprite, the dialog goes invisible, right?? but it doesn't. it just hangs there. i want it to go away. it wont let me make an 'else' variable that turns the layer invisible. i cant figure that one out either.

I haven't used construct 2, but it seems there isn't an event that tells the dialog box to go away after it comes up. As it is, the condition "playerBox is not overlapping Sprite" is under the Keyboard "E" pressed event. Does your dialog box go away if you press E and your player isn't overlapping the sprite?

the dialogue box is on layer 'dialogue', so the idea is that it's supposed to go away by making the entire layer it's on invisible when you're no longer overlapping the npc sprite.

to answer your second question, not it does not. it doesnt go away even if you disable pressed E either. if you disable pressed E, the dialogue appears when you overlap the sprite and stays when you are no longer overlapping the sprite, even though that's the condition for the layer to turn invisibile again.

(+1)

huh. i got it working by removing "is not overlapping sprite" as a sub event and making it its own event

not ideal ebcause i wanted to have two separate dialogue npcs (one for units and one for lore tablets so i could make their boxes different) but i guess it'll do

Host

hi!! whats happening here is that "not overlapping" is a condition underneath a key press + overlapping. the whole group of events only fires on a key press with the overlapping condition, but not overlapping will never fire bc it would only be checked if the above conditions were true!! im not too sure what you need exactly eith the two diff npcs but is it possible to solve with booleans--either one or the other or both can be used to toggle the layer's visibility?

hey!!! i'm using stencyl and I'm trying to put a text box into my game. i followed the image here (under the example: text input section), but it doesn't mention anything about actually drawing the text on the screen. i've tried a few things, but anything remotely similar to code completely evades me,,,, also i added the userInput attribute but idk if i have to do anything with it other than put it in the code?

i also want the text to fade out when pressing the enter key but i've been searching through the events and can't find something that does that. maybe after i figure out how to draw the text it'll be easier to find?

thanks!

is there any easier way to place art assets in a room in game maker than turning each sprite into its own object? i tried researching but really couldnt find anything on that or tilesets, this is specifically for a 2d platformer

Maybe make it part of the background or foreground? I don't really know sorry. I'm messing with GameMaker myself trying to learn how it works and that was the first thing that came to mind.

I have a question about Ren'py (which I'm assuming goes in the 2D Engines thread but correct me if I'm in the wrong place)

I'm trying to figure out how to make the menu options (for player choices) appear inside of the textbox instead of in the middle of the screen. I've figured out how to give the buttons a transparent background so that they look how I want but I can't figure out how to move them. If I could just get them to display at the bottom left part of the screen that would be good enough.

Thanks in advance for any suggestions.

Host

hmmm i'm still not very familiar with renpy but i believe this can be done by declaring some style properties, and here seems to be some documentation on position specifically.