# toao

Member Since 13 Jun 2009
Offline Last Active Apr 17 2012 11:12 AM

### In Topic: Help! 3d model-selecting

17 April 2012 - 11:14 AM

Try drawing each model in a diffirent color, and then check what color is under the cursor when you click. Thus you will know what object has been clicked on. I belive filulius hade some example of that around here.

### In Topic: How to make an object spin?

25 December 2011 - 09:16 AM

```//Draw event
num += 1
d3d_transform_set_translation(0,0,0)
d3d_draw_ellipsoid(-2,-20,-2, 2,-16,2, tex_planet, 1,1, 10)
d3d_transform_set_identity()```

this will spin a planet around 0,0,0.
not too sure if the function names are correct.

### In Topic: Whats more efficient for collision checking in 3d?

25 December 2011 - 09:06 AM

If the maps are more complex, i vould suggest a dll called p3dc, i am using that and it is great. In that case you use 3d models for collision checking.

### In Topic: Collision thang

23 December 2011 - 09:05 AM

Can someone make this so when you hit z 32 you fall back down instead of skipping straight through to z 48?

What have you tried already? I suggest you give it a shot yourself rather than asking someone to fix your code.
However, this is rather easy, so ill just fix it for you.

```if z < 48 and z > 32
{
zspeed=0
z=48
}
```

This is faulty.
when z is larger than 32 and smaller than 48 it sets z to 48, creating the problem you discribed

this part is also very vierd;
```if z > 32 then

if z < 32
```
you realise both of these conditions will never be true, right?

Scince you have provided so little code i cannot predict if this altered code will work, but here you go:
```if z=32{
z=31
}

if z < 32
{
{
x = xprevious;
y = yprevious;
if (abs(hspeed) >= abs(vspeed) && not place_meeting(x+hspeed,y,oBlock2))
{ x += hspeed; exit;}
if (abs(vspeed) >= abs(hspeed) && not place_meeting(x,y+vspeed,oBlock2))
{ y += vspeed; exit;}
speed = 0;
}
}
if z < 48 and z > 32
{
zspeed=0
z=32
}
```

### In Topic: Yoyo game = virus?

17 December 2011 - 06:35 PM

You dont seem to have uploaded it onto yoyogames, but some other site. It is possible the other site injects a virus into your uploaded file. The link is not working however.