Voidy is fine with the glass, as MNIK stated above, my flask is looking to see if there are solid objects beneath it, since the glass is solid, it will perform the actions that make it stop and sit on the block. I need to bypass this air check by testing for glass beneath the object, I know I can use the Check Object function, but I don't know how to set it up.Sammy_Bro wrote:Oh, sorry.
Apparently, the glass is solid, so I don't think the flask will go through..
..but if you want Voidy to collide with the glass, THAT is the problem.
Voidy - New GM Game whose first demo will be out soon-ish!
Moderators: ~xpr'd~, tyteen4a03, Stinky, Emerald141, Qloof234, jdl
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9712
- Joined: Mon Dec 01, 2008 10:18 pm
The Check Object function isn't really the best way to go about that since Voidy needs to move to contact in order to land nicely on the glass.StinkerSquad01 wrote:Voidy is fine with the glass, as MNIK stated above, my flask is looking to see if there are solid objects beneath it, since the glass is solid, it will perform the actions that make it stop and sit on the block. I need to bypass this air check by testing for glass beneath the object, I know I can use the Check Object function, but I don't know how to set it up.Sammy_Bro wrote:Oh, sorry.
Apparently, the glass is solid, so I don't think the flask will go through..
..but if you want Voidy to collide with the glass, THAT is the problem.
Regardless, I think I know how to fix your problems with the glass.
Make the glass unsolid. That way, the flask will ignore it. However, an extra function is needed in Voidy's collision with the glass. When Voidy collides with the glass, have him jump to position (xprevious,yprevious). That should fix their collision problems.
You may need to adjust a few things to get Voidy to be able to jump off of the glass. However, I won't go into that yet. Tell me if the (xprevious,yprevious) thing is working (mostly) properly if you decide to use it.
- boywhoflies
- Rainbow Spirit Chaser
- Posts: 5510
- Joined: Thu Jun 26, 2008 3:16 pm
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9712
- Joined: Mon Dec 01, 2008 10:18 pm
Remember, the main difference between solid and non-solid objects is that the moving object executes the function to jump to position (xprevious,yprevious) when it collides with the solid object. Unsolid object collisions do not perform this function.
Things could go wrong if a flask touches the glass at the same frame as Voidy does.boywhoflies wrote:No idea if this will work, but if that's the case, mabye you can keep the glass not solid, but when Voidy lands on it, you change it to solid, do the collision actions, and make it not solid again.(In the same event)
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
It works, but I am stuck and cannot move, then I get burnt to a crisp from the oncoming Flasks. o3o
Last edited by StinkerSquad01 on Sun Jan 08, 2012 5:28 am, edited 1 time in total.
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9712
- Joined: Mon Dec 01, 2008 10:18 pm
- boywhoflies
- Rainbow Spirit Chaser
- Posts: 5510
- Joined: Thu Jun 26, 2008 3:16 pm
I meant at the start and end of Voidy's collision event with the glass, so it's not solid again before anything else happens.MyNameIsKooky wrote:Things could go wrong if a flask touches the glass at the same frame as Voidy does.boywhoflies wrote:No idea if this will work, but if that's the case, mabye you can keep the glass not solid, but when Voidy lands on it, you change it to solid, do the collision actions, and make it not solid again.(In the same event)
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9712
- Joined: Mon Dec 01, 2008 10:18 pm
Hmm.
Try changing this (in the step event):
To this:
You'll need to use the Object Check function.
Try changing this (in the step event):
Code: Select all
COMMENT: check whether in air
if relative position (0,1) is collision free for Only solid objects
set the gravity to .5 in direction 270
else
set the gravity to 0 in direction 270
Code: Select all
COMMENT: check whether in air
if relative position (0,1) is collision free for Only solid objects
if there is not object obj_glass at relative position (0,1)
set the gravity to .5 in direction 270
else
set the gravity to 0 in direction 270
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9712
- Joined: Mon Dec 01, 2008 10:18 pm
Have it check for either solid objects or glass.StinkerSquad01 wrote:Too bad, I did anyway.
EDIT: Still, I can't jump [because my jumping is checking for solid objects],
It should have worked fine. Maybe you did something about the Object Check function differently or something?StinkerSquad01 wrote:and when I land, I pause in mid air for a little sec. When I try to move after landing, I can't. :'< ORZ
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9712
- Joined: Mon Dec 01, 2008 10:18 pm
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am
- boywhoflies
- Rainbow Spirit Chaser
- Posts: 5510
- Joined: Thu Jun 26, 2008 3:16 pm
- StinkerSquad01
- Rainbow AllStar
- Posts: 4251
- Joined: Mon Aug 09, 2010 3:39 am