Shadow Fawn Games
- boywhoflies
- Rainbow Spirit Chaser
- Posts: 5510
- Joined: Thu Jun 26, 2008 3:16 pm
- boywhoflies
- Rainbow Spirit Chaser
- Posts: 5510
- Joined: Thu Jun 26, 2008 3:16 pm
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9705
- Joined: Mon Dec 01, 2008 10:18 pm
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9705
- Joined: Mon Dec 01, 2008 10:18 pm
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
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9705
- Joined: Mon Dec 01, 2008 10:18 pm
Looking good, except for two problems.
It should be relative position (0,4), not (0,-4). Negative in the y-coordinates is upwards in Game Maker.
You shouldn't need to use gravity in the collision events. For collisions with walls and stuff, use this:
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).
Code: Select all
Step Event:
if relative position (0,-4) is collision free for Only solid objectsCode: Select all
Collision Event with object Metal:
set the gravity to 0 in direction 270Code: 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- DEEMAN223344
- Rainbow MegaStar
- Posts: 3141
- Joined: Tue Dec 04, 2007 8:07 pm
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3141
- Joined: Tue Dec 04, 2007 8:07 pm
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9705
- Joined: Mon Dec 01, 2008 10:18 pm
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3141
- Joined: Tue Dec 04, 2007 8:07 pm
Yes I did. I even tested it.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.
Edit: I actually forgot to save.
Last edited by DEEMAN223344 on Fri Nov 11, 2011 2:29 am, edited 1 time in total.
In that case maybe you uploaded the wrong file.DEEMAN223344 wrote:Yes I did. I even tested it.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.
i should change my signature to be rude to people who hate pictures of valves
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9705
- Joined: Mon Dec 01, 2008 10:18 pm
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
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9705
- Joined: Mon Dec 01, 2008 10:18 pm
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9705
- Joined: Mon Dec 01, 2008 10:18 pm
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9705
- Joined: Mon Dec 01, 2008 10:18 pm
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).
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).
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9705
- Joined: Mon Dec 01, 2008 10:18 pm
- boywhoflies
- Rainbow Spirit Chaser
- Posts: 5510
- Joined: Thu Jun 26, 2008 3:16 pm
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9705
- Joined: Mon Dec 01, 2008 10:18 pm