Shadow Fawn Games

For discussion of non-Wonderland topics - please read rules!
User avatar
boywhoflies
Rainbow Spirit Chaser
Posts: 5510
Joined: Thu Jun 26, 2008 3:16 pm

Post by boywhoflies »

I decompiled your game and found a missing comma in it! *shot*
Mr. Robot never dies! :D

Chatroom
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

Ergh. After some changes, you still can't move despite the fact that you should be able to. whywhywhy
i should change my signature to be rude to people who hate pictures of valves
User avatar
boywhoflies
Rainbow Spirit Chaser
Posts: 5510
Joined: Thu Jun 26, 2008 3:16 pm

Post by boywhoflies »

-voulenteers to look at your engine-
Mr. Robot never dies! :D

Chatroom
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9705
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky »

Nobody wrote:Ergh. After some changes, you still can't move despite the fact that you should be able to. whywhywhy
You have the "relative" box checked in the "if there's a solid collision at relative position (0,1)" thingies in the step event, right?
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

Yes.
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9705
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky »

Can you post the updated pseudo-code?
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

Code: Select all

 Step Event:
if relative position (0,-4) is collision free for Only solid objects
      set the gravity to 4 in direction 270
else
      set the gravity to 0 in direction 270
if vspeed is larger than 10
      set the vertical speed to 10

Collision Event with object Metal:
set the gravity to 0 in direction 270

Key Press Event for <Left> Key:
if relative position (-1,0) is collision free for Only solid objects
      jump relative to position (-4,0)

Key Press Event for <Right> Key:
if relative position (1,0) is collision free for Only solid objects
      jump relative to position (4,0)
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9705
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky »

Looking good, except for two problems.

Code: Select all

 Step Event:
if relative position (0,-4) is collision free for Only solid objects
It should be relative position (0,4), not (0,-4). Negative in the y-coordinates is upwards in Game Maker.

Code: Select all

Collision Event with object Metal:
set the gravity to 0 in direction 270
You shouldn't need to use gravity in the collision events. For collisions with walls and stuff, use this:

Code: Select all

move in direction direction at most 16 till a contact with solid objects 
start moving in directions 000010000 (which is the box thingy in the middle) with speed set to 0
I'd be happy to just take the .gmk file for you and fix it, but I can't access my computer right now because I'm backing up all of my stuff (I'm using my mom's computer right now).
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

Since there's barely anything in the GMK as of now I decided to post it freely.
You do not have the required permissions to view the files attached to this post.
i should change my signature to be rude to people who hate pictures of valves
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

Since there's barely anything in the GMK as of now I decided to post it freely.
You do not have the required permissions to view the files attached to this post.
i should change my signature to be rude to people who hate pictures of valves
User avatar
DEEMAN223344
Rainbow MegaStar
Posts: 3141
Joined: Tue Dec 04, 2007 8:07 pm

Post by DEEMAN223344 »

IMMEDIATE PROBLEM
DON'T use the "Press" events. Use the normal ones.
User avatar
DEEMAN223344
Rainbow MegaStar
Posts: 3141
Joined: Tue Dec 04, 2007 8:07 pm

Post by DEEMAN223344 »

Fixed it. It was a lot of fun.
You do not have the required permissions to view the files attached to this post.
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

Eh, I still can't move while on the ground...?

EDIT: Oh, you didn't actually fix it. Now that I did... I still can't move. Huh.
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9705
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky »

Here's your de-bugified thingy.

If you want him to jump lower or fall faster, experiment with different values of gravity and vertical speed in the step and spacebar events respectively.
You do not have the required permissions to view the files attached to this post.
User avatar
DEEMAN223344
Rainbow MegaStar
Posts: 3141
Joined: Tue Dec 04, 2007 8:07 pm

Post by DEEMAN223344 »

Nobody wrote:Eh, I still can't move while on the ground...?

EDIT: Oh, you didn't actually fix it. Now that I did... I still can't move. Huh.
Yes I did. I even tested it.
Edit: I actually forgot to save.
Last edited by DEEMAN223344 on Fri Nov 11, 2011 2:29 am, edited 1 time in total.
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

DEEMAN223344 wrote:
Nobody wrote:Eh, I still can't move while on the ground...?

EDIT: Oh, you didn't actually fix it. Now that I did... I still can't move. Huh.
Yes I did. I even tested it.
In that case maybe you uploaded the wrong file.
i should change my signature to be rude to people who hate pictures of valves
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

DP.

Erm, how do I put the text engine from the ET5 topic in and how do I control what it says? :P
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9705
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky »

Nobody wrote:Erm, how do I put the text engine from the ET5 topic in
Put all of the code and sprites from the engine into your game.
Nobody wrote:and how do I control what it says?
Edit the code that's in the create event.
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

I don't understand. Why doesn't my headshot work???
i should change my signature to be rude to people who hate pictures of valves
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

oh nevermind my game maker got closed without saving stuff so now the text engine and dialog is gone so i'll have to bring it all back before i fix the problem
Last edited by Nobody on Sun Nov 20, 2011 4:19 am, edited 1 time in total.
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9705
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky »

Nobody wrote:I don't understand. Why doesn't my headshot work???
Be more specific. Is the sprite you're using 32x32?
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

Erm, false alarm. The stuff didn't get deleted. Anyways, I changed it to 32x32 from 32x33 and it still doesn't work.
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9705
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky »

It's supposed to be 32x32.

And what do you mean by "it doesn't work"?
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

ERROR in
action number 1
of Create Event
for object obj_type:

Error in code at line 32:
img[1] = spr_lorgo
^
at position 2: Unknown variable img or array index out of bounds
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9705
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky »

The first index should be 0, not 1. It should be like this:

str[0] = "BLAH BLAH BLAH"
str[1] = "BLAH BLAH BLAH
str[2] = "BLAH BLAH BLAH*"

img[0] = spr_bob
img[1] = spr_joe
img[2] = spr_alex

name[0] = "Bob"
name[1] = "Joe"
name[2] = "Alex"

Also, make sure you actually have a sprite named "spr_lorgo" (without the quotes).
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

It is like that, only the other character has no headshot.
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9705
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky »

You need to have all of the arrays defined and the headshot sprites need to exist, otherwise it will get an error.
User avatar
boywhoflies
Rainbow Spirit Chaser
Posts: 5510
Joined: Thu Jun 26, 2008 3:16 pm

Post by boywhoflies »

MyNameIsKooky wrote:It's supposed to be 32x32.
If this means anything, I'm using 34x34 or something like that for Circuit and it looks fine.
I knew it was intended to be 32x32 when I did that, though.
Mr. Robot never dies! :D

Chatroom
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9705
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky »

boywhoflies wrote:
MyNameIsKooky wrote:It's supposed to be 32x32.
If this means anything, I'm using 34x34 or something like that for Circuit and it looks fine.
Unless you look closely and realize that it's 2 pixels too big. :(
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5531
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody »

Now none of the variables can be found. I added an even that makes them, but the text and box aren't getting displayed.
i should change my signature to be rude to people who hate pictures of valves
Post Reply